Why my nginx so many waiting users?

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?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,49182,49182#msg-49182

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 D.

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?

This is keepalive connections, so you do not need to fix it.


Igor S.
http://sysoev.ru/en/