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?

link|improve this question
feedback

1 Answer

ss is your friend for exactly this.

link|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
feedback

Your Answer

 
or
required, but never shown

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