Page 1 of 1

Faster way to count TCP connections

Posted: Tue Aug 27, 2013 9:26 am
by Hazhir
Hi,

We have a server which actively receives large number of TCP connections. Normal check (netstat) on number of connections takes about at least 20Sec. We would like to find a much faster way to do this.

Any help or hint is highly appreciated.

Thank you.

Re: Faster way to count TCP connections

Posted: Tue Aug 27, 2013 12:55 pm
by abrist
The following runs very fast on my test box:

Code: Select all

netstat -t | wc -l