I have a service endpoint (java) that will be getting bursts of thousands of requests per second.
In my load testing I had to tweak the server because I would run out of open sockets as there were many stuck in various status levels similiar to: How to reduce number of sockets in TIME_WAIT?
I'm running Ubuntu, how can I collect the correct stats for this to send to nagios or monit?