Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor memory usage on heroku (node.js)

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?

like image 417
pars Avatar asked Mar 13 '12 09:03

pars


3 Answers

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().

like image 79
Michelle Tilley Avatar answered Oct 28 '22 21:10

Michelle Tilley


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

like image 41
Arunoda Susiripala Avatar answered Oct 28 '22 19:10

Arunoda Susiripala


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

like image 1
mikegradek Avatar answered Oct 28 '22 19:10

mikegradek