On Jul 16, 2012, at 10:05 PM, Eric Wong wrote:

> Mark Mccraw <[email protected]> wrote:
>> Hi There!
>> 
>> I'm having a devil of a time figuring out a weird issue I'm running
>> into.  I have unicorn configured to start 4 worker processes, and that
>> works great.  However, when it's time to cycle the app, everything
>> goes haywire. By trial and error, I have narrowed it down to this:
>> sending any signal to the master process other than SIGKILL fails
>> miserably.  No new master process is created, as described in the
>> documentation, nothing happens to the existing workers, nothing gets
>> written to any log, and if I run top -u, I can see that very quickly
>> the master ramps up to 100% CPU utilization.  This happens if I run
>> 'kill -HUP <master pid>', 'kill -USR2 <master pid>', even 'kill -QUIT
>> <master pid>'.
> 
> This sounds like a Ruby/FreeBSD bug we've seen before.  My script
> in http://mid.gmane.org/[email protected] should
> reproduce the issue w/o unicorn.

You are absolutely correct!  Your script replicates the problem perfectly.

>> ruby 1.9.3p0 (2011-10-30 revision 33570) [amd64-freebsd9]
> 
> I think this is a Ruby bug that was fixed in 1.9.3-p30 according to
> naruse:
> http://mid.gmane.org/cak6hhsppwvpijwlyzmwckueydt5szrogv6adxkgreht3alf...@mail.gmail.com
> 
> Since 1.9.3 p194 is the latest, can you try that out and confirm the
> fix?  I don't remember the other bug reported confirmed this issue was
> fixed by upgrading Ruby.

We're upgrading now to see what happens.  I'm so glad you knew about this.  
There's no telling how long it would have taken me to question the ruby 
interpreter implementation, and
since it's FreeBSD, I never would have found it by googling.
Thanks for hours (days?) of my life back.

Mark


_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to