Reputation: 5583
How do I see the cpu and memory usage of my app in heroku with ruby. Is there something like "top" command of ubuntu which gives me the memory and cpu utilization in it Thanks in advance
Upvotes: 1
Views: 1792
Reputation: 1916
If you are running an app on Heroku with two or more dynos, then you have access to application metrics via the Heroku dashboard
https://devcenter.heroku.com/articles/metrics
Otherwise, New Relic or some of the other addons for Heroku will give you this kind of information
https://addons.heroku.com/?q=Monitor
Upvotes: 0
Reputation: 107142
I suggest to activate the free Newrelic add-on: https://addons.heroku.com/newrelic It does not only give you memory and cpu information, but many insight into your app: https://newrelic.com/application-monitoring/features
Upvotes: 2
Reputation: 1137
Here you can check this info, I copy&paste the main info of this utility, take into account it is an addon:
This Heroku Labs log-runtime-metrics feature adds experimental support for enabling visibility into load and memory usage for running dynos. Per-dyno stats on memory use, swap use, and load average are inserted into the app’s log stream where they can be seen via heroku logs --tail, used for graphs or alerting via an add-on which consumes app logs, or sent to a log drain. There is no cost incurred by enabling this feature.
Upvotes: 0