why my nginx so many waiting users ?

Maxim Dounin mdounin at mdounin.ru
Tue Feb 2 12:57:38 MSK 2010


Hello!

On Tue, Feb 02, 2010 at 04:28:32AM -0500, 21andy wrote:

> Active connections: 82 
> server accepts handled requests
>  1404 1404 3579 
> Reading: 0 Writing: 1 Waiting: 81 
> 
> http://www.21andy.com/nginx.gif
> 
> how can i fix it?

You don't really want to fix it, as "waiting" means kept-alive 
connections.  They consume almost no resources (socket + about 
2.5M of memory per 10000 connections in nginx).

If you really want to switch keepalive off, you may do so by

keepalive_timeout 0;

See here for details:

http://wiki.nginx.org/NginxHttpCoreModule#keepalive_timeout

Maxim Dounin



More information about the nginx mailing list