How does a nodejs app retrieve its own memory usage?

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

+3


source to share


1 answer


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

      



+5


source







All Articles