Closed barelyknown closed 8 years ago
I put that warning as more of a CYA. It may work, but it's kinda surprising when it does. The core issue hasn't been fixed (that memory measurement on Heroku is inherently flawed and different from what the actual container is seeing). I would recommend http://github.com/schneems/puma_worker_killer with rolling restarts for more consistent behavior. Maybe we should put that in the README
I'm going to see how it goes for a couple of days to see if there are inconsistencies and then switch to puma_worker_killer if there are. But so far, so good. Thanks for responding.
I understand from the README that this should not be used in production. But, I tested the gem today on an app that has a sudden unexpected difficult-to-diagnose memory leak, and it seemed to work perfectly. Did something change with Heroku/Linux that would explain that?
I'd obviously like to just find the memory leak, but this seems to be an effective option right now.