whacamole icon indicating copy to clipboard operation
whacamole copied to clipboard

restart_necessary? should support monitoring of the swap size

Open jeffblake opened this issue 11 years ago • 4 comments

Heroku says in their docs that swap memory can accumulate before you even hit R14's. Since swap severely degrades performance, I think it would be more prudent of whacamole to monitor swap rather than memory usage (or a combination of the two).

jeffblake avatar Nov 05 '14 19:11 jeffblake

thanks for the heads up, I'll do some more digging

arches avatar Nov 05 '14 19:11 arches

Checking in on this

jeffblake avatar Feb 22 '15 20:02 jeffblake

Yes, I also have this problem where the swap of my app sometimes increases long before reaching the memory limit. This greatly decreases the performance of the app and cause request timouts. If I could implement a rule like "Restart the processes when the swap reaches 60MB", it would be a lifesaver!

@jeffblake Let me know if you find the root cause for this. I read that tweaking the Ruby memory variables might help but I don't know where to start. It looks like others are also having the same problem: https://discussion.heroku.com/t/when-heroku-switch-to-use-swap-memory/778

pomartel avatar Mar 09 '15 13:03 pomartel

The code does not seem that complicated. I will see if I can fork this and submit a pull request.

pomartel avatar Mar 09 '15 13:03 pomartel