php api

Joe Stump joe at
Thu Oct 25 16:07:13 UTC 2007

I've been able to reproduce locally here, though I'm not seeing  
70-100% utilization I am see a definite spike after the first job is  
ran. Thanks for the input. I'll be working on it today most likely.  
I'll ping the list with my findings. If anyone has any idea why this  
might be happening please email me.



On Oct 25, 2007, at 6:37 AM, <dangalist at>  
<dangalist at> wrote:

> I was testing the net_gearman class using the example runSet.php  
> which sums numbers from an array,
> but experienced weird behaviour. The worker.php runs smooth untill  
> I call the "Sum" function, then gearman
> goes 100% and worker.php about 70 - 100% of cpu usage. The function  
> returns result very quickly, but both processes
> keep hanging at these high values since that and causing other  
> requests to timeout in short time. Gearmand
> cpu load goes down right after I kill worker.php, so I guess there  
> is some loop which keeps hitting gearman
> after first job request. Isnt there newer version of this class so  
> I could test it, it is maybe already fixed.  I am using
> PHP Version 5.2.4 in fast cgi mode on gentoo.
> Goodwill
> _______________________________________________
> Gearman mailing list
> Gearman at

More information about the Gearman mailing list