Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory monitoring on Heroku

We're running Django on Heroku, and I'm looking for a way to monitor how much memory is being used. Once we go over our limit, we get errors that do tell us how much memory we are using, but I'd like to see how memory is ebbing and flowing even when we are under our limit.

It seems like basic functionality, but I haven't seen anything in the Heroku dyno docs that suggests a way to do it. I'd really appreciate any pointers.

Thanks a lot!

Clay

like image 322
Clay Wardell Avatar asked Aug 10 '12 15:08

Clay Wardell


1 Answers

I use Django on Heroku as well. The best way to monitor memory is to install the NewRelic addon. When you first install it (the free version), you get a week of their 'advanced' usage tier free, which allows you to see all the stats about your application:

  • Total requests per minute.
  • Average response time.
  • Slow pages.
  • Database queries (response times, etc.).
  • End user page load times.
  • A variety of analytics.
  • Background job stats (memory, cpu, etc.).
  • Available RAM, RAM usage over time, etc.
  • and lots more

For reference, here's a screenshot so you can see what I'm talking about:

NewRelic memory stats

like image 83
rdegges Avatar answered Sep 28 '22 03:09

rdegges