[Mongrel] [WARN] Got 99% CPU?

Michael Moen mi-mongrel at moensolutions.com
Tue Oct 24 16:27:01 EDT 2006

On Oct 24, 2006, at 3:10 PM, Zed A. Shaw wrote:
> Go grab the pre-release and run it under USR1 debugging in  
> production.  It's got a tweak to the debugging output so that you  
> can better understand what action is blocking the mongrel.   
> Something like this:
> $ gem install mongrel --source=http://mongrel.rubyforge.org/releases
> $ <start mongrel_rails however you do>
> $ killall -USR1 mongrel_rails
> Then, you're looking for lines in mongrel.log:
> Tue Oct 24 15:07:07 PDT 2006: 0 threads sync_waiting for /test, 1  
> still active
> in Mongrel.

Here's a handful of the ones we logged yesterday, as you can see it  
wasn't in a happy state. I'll run off and grab the pre-release for  
one of the boxes and give it another spin.

Mon Oct 23 21:35:33 UTC 2006: 331 threads sync_waiting for /, 337  
still active in mongrel.
Mon Oct 23 21:35:44 UTC 2006: 332 threads sync_waiting for /health/ 
db, 338 still active in mongrel.
Mon Oct 23 21:36:05 UTC 2006: 334 threads sync_waiting for /, 340  
still active in mongrel.
Mon Oct 23 21:36:21 UTC 2006: 335 threads sync_waiting for /feeds/ 
player/22722/27312, 341 still active in mongrel.
Mon Oct 23 21:36:34 UTC 2006: 337 threads sync_waiting for /usage/ 
207205/2, 343 still active in mongrel.
Mon Oct 23 21:36:52 UTC 2006: 339 threads sync_waiting for /, 345  
still active in mongrel.
Mon Oct 23 21:37:16 UTC 2006: 341 threads sync_waiting for /feeds/ 
gse_player/232062, 347 still active in mongrel.
Mon Oct 23 21:37:31 UTC 2006: 343 threads sync_waiting for / 
great_sketch_experiment/register/, 349 still active in mongrel.

> Yep, this sounds like you have a particular Rails action that is  
> blocking the process.  What kinds of things is your Rails  
> application doing?

I was trying to track something down in there yesterday based on the  
FAQ, but it looks like it's all over? Maybe I'm reading it wrong or  
maybe I need to have it enabled before it goes bad and see who's the  
first to complain?.

As for what the site is doing, for the above actions, nothing  
special. The tricky bits are Ferret search over DRb, File uploads  
(which could be causing problems, it's not using m_u_p yet), now that  
a take some time to think about it (it's been hectic around here) I'm  
going to guess my next task is m_u_p.

Thanks again-

More information about the Mongrel-users mailing list