Void
Void

Reputation: 1502

How does a nodejs app retrieve it's own memory usage?

I have a nodejs app, is there a module or a function that returns the current memory usage?

Upvotes: 3

Views: 148

Answers (1)

Dan D.
Dan D.

Reputation: 74645

> process.memoryUsage()
{ rss: 7827456,
  heapTotal: 2525472,
  heapUsed: 1542704 }

Upvotes: 5

Related Questions