[YBA] TCP connection rate

[YBA] TCP connection rate

Shachar Shemesh shachar at shemesh.biz
Mon Feb 2 16:41:56 IST 2009


Gilad Ben-Yossef wrote:
>
> Just check what the value of the backlog parameter is and then use 
> netstat to watch the application connections when you get ECONNREFUSED 
> error. If the number of connections in netstat is equal (or at least 
> very close to) the backlog parameter then it's the backlog parameter, 
> otherwise it's something else.
Ehh, I'm not sure that's the case.

The back log only relates to connections that have not been picked up by 
user space yet. The above would be a rough estimate IF we can assume 
that all connections are very short lived in relation to the amount of 
time it takes to handle a connection and close it is very short in 
relation to the amount of time it takes between the connection being 
established and user space running "accept". Otherwise, netstat is of no 
help.

Shachar



More information about the Linux-il mailing list