[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring IMAP thread count



On Fri, Sep 18, 2009 at 9:26 AM, Brian Elliott Finley <finley@anl.gov> wrote:
Thanks for the query line.  If you change the "grep" to "grep -w", you can get an accurate count for either 143 or 7143.

On a system with nginx, for example:

% netstat -an | grep -w 143 | grep ESTABLISHED | wc -l
1

% netstat -an | grep -w 7143 | grep ESTABLISHED | wc -l
1302

On really busy servers, where there's lots of TCP, UDP, and sockets in use, you can speed things up by limiting netstat to just showing TCP connections:

netstat -ant

--
Freddie Cash
fjwcash@gmail.com