I'm hosting a rails application on Heroku.
Is there a way I could track the memory usage of the running dynos?
I'm hosting a rails application on Heroku.
Is there a way I could track the memory usage of the running dynos?
Heroku has a log-runtime-metrics
feature to monitor the memory usage now.
To enable, run
$ heroku labs:enable log-runtime-metrics
and the memory usage will be shown on the server log. Read Heroku log-runtime-metrics docs for more information.
I would advice you to open an account on New Relic.
More information here :
http://newrelic.com/docs/ruby/new-relic-for-ruby
and here :
None of the answers provide a good way to track the memory usage of dynos, especially if you want to separate stack & heap usage from shared libraries, etc.
In my answer to another SO question I provide code that takes detailed snapshots of process memory usage and adds the ability to do threshold-based diffing to identify the areas with changing memory usage over time.
Here is the gist with the code for tracking the memory footprint of Heroku dynos.
Using the Heroku New Relic Standard addon - it's free and it's awesome, plus it has a specific 'Dynos' tab when used via Heroku.