noahd1 / oink

Log parser to identify actions which significantly increase VM heap size
MIT License
1.18k stars 71 forks source link

Does oink work with heroku? #15

Closed odedharth closed 12 years ago

odedharth commented 12 years ago

Can I get oink reports for my production environment that is hosted on heroku?

Thanks

noahd1 commented 12 years ago

Sorry, I don't have a ton of production Heroku experience. From my brief browsing, it appears that Heroku imposes a particular log format which does not seem overrideable or Oink compatible. You could have Oink write to a separate log file, but it's unclear to me what access you have to download log files in the log directory. If you can download custom log files though, you could parse them locally to get the oink report.

I was looking at this http://devcenter.heroku.com/articles/logging if you want to dig deeper.

jurre commented 12 years ago

I don't have any experience with heroku but I was reading through their documentation and they recommend Oink for profiling:

"In some cases, your dyno may reach or exceed that 512MB amount. Typically this is because of a memory leak in your application, in which case you may wish to use a memory profiling tool such as Oink for Ruby or Heapy for Python to track down the leak and fix it."[0]

So that leads me to think that it should work?

[0]http://devcenter.heroku.com/articles/dynos

softwaregravy commented 12 years ago

Heroku has recommended using oink to me during ticket requests, and I've used it successfully. So, yes.

barmstrong commented 11 years ago

See this SO post: http://stackoverflow.com/questions/10359552/oink-logs-command-not-working-on-heroku