3

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

1 Answer 1

5
> process.memoryUsage()
{ rss: 7827456,
  heapTotal: 2525472,
  heapUsed: 1542704 }
Sign up to request clarification or add additional context in comments.

1 Comment

A quick way to see the total memory usage of your app in megabytes is: process.memoryUsage().rss / (1024 * 1024)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.