Plenty close_wait

Joshua Zhu zhuzhaoyuan at
Fri Jul 24 05:37:10 MSD 2009


Were those connections opened by nginx or your own application? In
most cases, long duration of CLOSE_WAIT suggests that there might be a
bug, i.e., someone forgot to close(1) the socket after use.

P.S. You can visit
for more details of the CLOSE_WAIT state.


On Fri, Jul 24, 2009 at 7:22 AM, Fernando Perez<lists at> wrote:
> Hi,
> Recently I am having a Rails app which become unresponsive after some
> time. Typing $ netstat -anp shows plenty CLOSE_WAIT connections.
> What's happening? Is my box hacked? Is someone trying to take it down?
> Can I configure Nginx to force closing crap connections?
> Thanks for your help.
> --
> Posted via

Joshua Zhu

More information about the nginx mailing list