Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

netstat -an will give the recvq and sendq on a particular connection. When I have an application (in this case a dumb echo server) listening on a port and I put the load on and run netstat in a loop, I see ALL connections to this port on TIME_WAIT state with the sendq and recvq as 0. I was hoping to see the queue on ESTABLISHED connections.

Are there any other ways to see TCP queues in real time on a linux machine?

share|improve this question

ss is your friend for exactly this.

share|improve this answer
Thanks. I used ss. It shows 60 in recvq all the time for a varying loadin ESTABLISHED state and 142 in sendq in FIN_WAIT state. Is sendq the same as as txqueuelen that is displayed in ifconfig <interface?>. If so, it is set to 1000 on my machine. So ,apparently sendq at least is not overflowing. How do I find out what is max recvq set to. Google is not revealing any result.Thanks again – kakinada Apr 17 '11 at 16:52
Glad it helped. I'm sure to be honest about your second point. – Jonathan Ross Apr 17 '11 at 17:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.