-
Notifications
You must be signed in to change notification settings - Fork 77
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
100% CPU Usage On Puma Workers at "idle" in Development. #361
Comments
@joshuapinter This is definitely surprising. We use puma ourselves and don't experience this issue so it seems likely to be something related to a specific configuration. Would you might sharing your Puma config? |
Thanks for the quick response. Here's the puma config we're using:
|
@joshuapinter thanks for sharing. Unfortunately, my colleague most equipped to investigate this is currently taking some PTO. I'll try to investigate some before he's back, but please bear with us if it takes a little bit for us to resolve this. Thanks. |
No worries, @wagenet. There's no rush, as the most important environments are production and staging. Keep me posted on anything I can do to help diagnose. Thanks. |
Hi @joshuapinter, thanks for your patience! There is some additional information that might be helpful:
|
Hi @zvkemp, thanks for the response.
Correct.
Sent! Thanks. |
Thanks for the sample. Skylight's task thread doesn't appear to be doing anything abnormal; as far as I can tell the only active thread (i.e., not waiting on a condition variable or IO) is Puma's reactor, so the question remains why the addition of Skylight would cause this. Can you try running Puma in single mode rather than cluster mode and let us know if the problem occurs there as well? |
Hey @zvkemp. I checked when running Puma in single mode (with |
Hello! I don't know if our issue is related but we're experiencing Puma workers randomly remaining at 100% in our production environment. There is this thread_pool issue that was fixed in Puma 5.4.0 puma/puma#2656 but it didn't fix the issue for us. |
Hey There,
Enabling
skylight
in development causes a strange situation where Puma workers remain at about 100% CPU utilization even after the request has been complete.Without
skylight
enabled in development and 5 seconds after the web request is complete:# config.skylight.environments += [ "development" ]
With
skylight
enabled in development and 5 seconds after the web request is complete:And it stays like this in perpetuity.
The only thing that is being changed is that one line.
We checked in production/staging and are not seeing this CPU issue.
Happy to help diagnose but not sure what the next steps may be. For now, we have to disable it in development as it makes our development machines unusable.
Thanks.
Versions
The text was updated successfully, but these errors were encountered: