Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.