Lots of CLOSE_WAIT sockets, nginx+php (WordPress site)

Maxim Dounin mdounin at mdounin.ru
Sun Feb 21 22:54:46 MSK 2010


Hello!

On Sun, Feb 21, 2010 at 11:19:48AM +0100, Vicente Aguilar wrote:

> Hi
> 
> I have a WordPress-mu site (a couple personal and friends' 
> blogs, very light traffic) which I migrated some months ago from 
> lighttpd+php-fcgi to nginx+php-fcgi. Ever since the migration 
> the site sometimes goes down, I never had the time to look into 
> it and just programmed a script that monitored the site and 
> restarted everything when it went down.
> 
> We're going to start using WP-mu at work so I've been looking 
> into it lately and the problem seems to be browser-server 
> connections stuck on the CLOSE_WAIT state. With netstat -nap I 
> get loads of these:
> 
> $ netstat -nap | grep CLOSE_WAIT
> tcp        1      0 10.10.10.10:80        1.2.3.4:52132     
> CLOSE_WAIT  27672/nginx: worker

[...]

What does nginx -V show?  What's in config?

Maxim Dounin



More information about the nginx mailing list