[Mongrel] Mongrel spinning on read_multipart

Ian C. Blenke ian at blenke.com
Fri Sep 22 01:01:47 EDT 2006


This is a repost, apparently my earlier message attempts were eaten by
rubyforge.

On Zed's suggestion, I caught two new spinning mongrels and sent a
SIGUSR2 (yeah, not a SIGUSR1, 0.3.13.3 and all).

The code appears to be stuck in read_multipart for both processes:

# kill -USR2 6109
** USR2 signal received.
Thu Sep 21 14:55:39 EDT 2006: Reaping 1 threads for slow workers because
of 'shutdown'
Thread #<Thread:0x419d7ce0 run> is too old, killing.
Waiting for 1 requests to finish, could take 60 seconds.Error calling
Dispatcher.dispatch #<Mongrel::TimeoutError: Timed out thread.>
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:600:in `loop'
/usr/lib/ruby/1.8/cgi.rb:984:in `read_multipart'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in
`initialize_query'
/usr/lib/ruby/1.8/cgi.rb:2270:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/cgi.rb:47:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/rails.rb:67:in
`process'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:551:in
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:550:in
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:625:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:956:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:955:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:127:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/command.rb:199:in
`run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235
/usr/bin/mongrel_rails:18

The same for process 6100.

We've had multipart problems before, but most of those were due to
malformed multipart MIME posts.

Has anyone else experienced multipart mime posts causing mongrel to spin
out of control?

- Ian C. Blenke <ian at blenke.com> http://ian.blenke.com/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ian.vcf
Type: text/x-vcard
Size: 117 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20060922/53f5558b/attachment.vcf 


More information about the Mongrel-users mailing list