active connections from status

Maxim Dounin mdounin at mdounin.ru
Sun Nov 25 04:43:28 MSK 2007


Hello!

On Sat, 24 Nov 2007, rkmr.em at gmail.com wrote:

> On Nov 24, 2007 4:23 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
>> On Sat, 24 Nov 2007, rkmr.em at gmail.com wrote:
>>> Active connections: 82
>>> server accepts handled requests
>>> 4489 4489 5657
>>> Reading: 0 Writing: 2 Waiting: 80
>>> does this mean 82 connections are waiting to be served? this is very
>> high
>>> right?
>> "Waiting" also counts keep-alive connections (in fact, it counts all
>> established connections except reading/writing ones). So it's not very
>>
>
> cool! thanks a lot! I have a timeout for keepalive 65 seconds..
>
>    keepalive_timeout  65;
>
>
> is this a good number? or should I have 0?

Default (keepalive_timeout 75) is good enough. I see no reason to change 
it unless you have too many keep-alive connections ("too many" may vary - 
but usually it means at least several thousands - so don't bother).

Maxim Dounin





More information about the nginx mailing list