[Mongrel] Excessive CLOSE_WAIT sockets, pound
jb at rightcart.com
Thu Aug 24 02:55:58 EDT 2006
we're running 0.3.13 and had this pop up just the other day. we're running
4 instances for our app behind apache/mod_proxy_balancer and this is the
first time it has happened (we've been running for a month or two). the app
was not under heavy load at the time ( < 10 req/s).
Linux XXX 126.96.36.199-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 x86_64 x86_64
ruby 1.8.4 (2005-12-24) [x86_64-linux]
On 8/23/06, Zed Shaw <zedshaw at zedshaw.com> wrote:
> On Wed, 2006-08-23 at 11:47 -0700, John Butler wrote:
> > Hello,
> > I'm experiencing a strange, but very bad behavior with Mongrel
> > 0.3.13.4 and Pound 1.8. Every 6 hours or so one of our nine (not
> > consistent on which one) application servers ( each one running
> > several mongrel processes ) will start leaving lots of socket
> > connections with pound open. This leads to "Too many open files"
> > errors. I've set pound to close connections after 60 seconds ( after
> > doing analysis of our Rails logs and finding that all requests end
> > under 60 seconds, and only 0.12% take over 1 second ). Pound closes
> > these, but mongrel apparently isn't getting the message and I end up
> > with rapidly increasing socket connections on the app server all left
> > in CLOSE_WAIT state ( which is when the remote end, pound, closes the
> > connection, and the OS is waiting for the app, mongrel, to close it on
> > its end ). Before setting Pound to kill these, one app server could
> > effectively take out our web server, because of "Too many open files".
> > The plagued app server still responds, and has low load, CPU usage,
> > and memory usage. I can even access the mongrels on their individual
> > ports. Nothing ( I could see ) shows up in the mongrel log and the
> > Rails logs all show it completing requests in a very timely manner.
> > Therefore I don't think its a code issue or resource issue. But it's
> > very odd and disturbing.
> Hey Jon, is it possible for you to come trouble shoot this with me in
> the unofficial mongrel support room:
> It'll be easier for me to have you run through some tests that way.
> Zed A. Shaw
> http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mongrel-users