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
Gearman-manager processes take 100% CPU even with no jobs running #13
Comments
You would need to strace the process to see what it is doing. |
I'm having the same issue.. Processes spawn up and consume 100% of cpu (with no work to do). strace: rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0 |
I was also seeing php processes taking too much CPU when loading the pecl-manager of GearmanManager. When I removed the "dedicated_only = true" from the job config, the php processes CPU usage went down to almost nothing.
The above config produces 5 workers for hello_job with high CPU usage. |
WTF? How to fix this and use dedicated_only? I am having this problem. |
100% CPU strace: select(4, [3], [], NULL, {1, 0}) = 1 (in [3], left {0, 999998}) |
same problem! |
Hmm, that strace is all stuff that happens in the PECL lib, GearmanManager does not handle the connections to the server. Are you using the most recent versions of the PECL lib and libgearman? |
Also what version of PHP are you running. |
@brianlmoon which version of libgearman and pecl gearman are supported? |
It works fine with unbuntu 14.04 and the latest version available in that. On Fri, Jul 17, 2015 at 1:03 PM, Dimitris Baltas notifications@github.com
|
@dbaltas There is nothing in GearmanManager that requires any certain version of the PECL library. I personally use https://github.com/brianlmoon/net_gearman. So I don't dog food PECL unfortunately. I can test it, make sure it functions. But, for long running, high performance issues, I am relying on the community to fill in those gaps. |
Hi,
Running Gearman-manager (installing with install.sh, Debian squeeze 32-bit), with 1 job file with dedicated_count=4, the CPU utilization of the Gearman-manager processes is 100%.
No jobs are being sent through gearmand.
How can I debug this?
Thanks,
Bar.
The text was updated successfully, but these errors were encountered: