0

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?

Caleb
  • 11,813
  • 4
  • 36
  • 49
kakinada
  • 1
  • 2

1 Answers1

1

ss is your friend for exactly this.

Jonathan Ross
  • 2,183
  • 11
  • 14
  • 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 . 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