-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGTERM leaving zombie worker processes #1855
Comments
Sounds like we can do something to clean this up, but there's no process left around, just the entry in the process table, so this isn't a serious issue. |
I am experiencing the same issue running Puma 4.0.1:
|
Apparently Monit (v5.16 at least) includes these defunct processes when it counts child processes. Looking forward to the fix being merged and released. |
🤦♂ Why would monit do that? You might want to open an issue over there, that seems unreasonable to me but I'm not a sysadmin so idk. |
We recently experienced the same issue after upgrading puma to 4.x, which forced us to revert it back to 3.x. It ate pids so fast that it hit the default maximum pid value of 49,152 in a few days, leading to a massive amount of Although there might be workarounds like increasing |
I wonder why people experience this issue only with 4.x? |
Always the famous last words, right? 😆 |
Closed in #1887 |
I'm running Puma in clustered mode and use monit to watch worker memory usage. If any worker reaches a certain threshold it's sent a SIGTERM to die gracefully and be respawned by the master.
As of Puma v4, each worker that receives a SIGTERM leaves behind a permanent zombie process (until the master is killed/restarted). With Puma v3, I noticed that workers receiving a SIGTERM also result in a zombie process but it's removed once the worker is fully respawned.
Is there a new preferred way to kill/restart workers since v4 or is this a possible issue?
Puma config -
Steps to reproduce
Expected behavior
No zombie/defunct worker process should exist.
System configuration
Ruby version: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
Rails version: 5.2.3
Puma version: 4.0.0 & 4.0.1
The text was updated successfully, but these errors were encountered: