9

There is New Relic for Rails, but I could not find anything available for node.js. Is there any tool or an API to monitor memory usage of heroku dynos?

3
  • 1
    when you find it please post back here - we decided against using node based on the fact that we couldn't monitor it (at the time - 6 months ago) effectively on Heroku to decide if/when we need to scale. We got in touch with NR who had nothing to say about it at the time. Commented Mar 13, 2012 at 16:17
  • Support stuff said there is no official tool or API however you could make use of heroku run /proc/*/statm (I didn't figure it out myself yet) Commented Mar 14, 2012 at 15:18
  • @celalo use node-usage which is based on /proc Commented Feb 22, 2013 at 16:17

3 Answers 3

4

This may not be the full solution you're looking for, but you can get the current memory usage of a Node.js process via process.memoryUsage().

Sign up to request clarification or add additional context in comments.

2 Comments

Could you tell how the values can be used? I see, we have rss, headTotal and heapMaster? How can I calculate this to MB and how is this related to the 512 MB RAM of a dyno?
This SO post explains the values: stackoverflow.com/questions/12023359/…
1

Use node-usage, additionally you can see the CPU usage too.

Comments

1

Although not as full-featured as New Relic, the nodetime npm package (and matching site) does provide memory usage, latency and similar monitoring.

Comments

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.