How to monitor real time sendq and recvq sizes

netstatperformance-monitoring

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?

Best Answer

ss is your friend for exactly this.