GuideThe service is slow. Is it the network?
A process waiting on the network looks idle. Retransmissions and drops are where the wait shows.
CPU, memory and disk have queues you can read. The network wait is spread across counters. Start with the machine, then the interface, then the connection.
Step 1: is the machine retransmitting?
sar -n ETCP 1
retrseg/s is the number of segments retransmitted per second: segments containing one or more previously transmitted octets. A steady rate above zero means data is being sent twice.
nstat -az | grep -i retrans
nstat reads the kernel’s SNMP counters. By default it shows the increase since you last ran it; -a dumps absolute values and -z includes counters at zero.
Step 2: is an interface dropping packets?
sar -n EDEV 1
ip -s link
rxdrop/s and txdrop/s are packets dropped per second because of a lack of space in Linux buffers. rxerr/s is bad packets received. Drops on your own interface are a local cause of retransmissions; none here leaves the path or the far end to check.
Step 3: is a listener refusing connections?
nstat -az | grep -i listen
Two counters matter for a server. The kernel documentation says that if the TCP accept queue is full, the kernel drops the SYN and adds one to TcpExtListenOverflows. TcpExtListenDrops counts every packet dropped for a socket in the listen state. Clients see this as slow connects.
Step 4: which connection, and which process
ss -tinpo
-t shows TCP sockets, -i their internal TCP information, -p the process using each. For each connection, rtt is the average round trip time and its deviation, rto is the retransmission timeout, and cwnd is the congestion window. -o adds timer information, including how many times retransmissions have occurred. A connection with a high rto and a small cwnd may have been losing data; the retransmission count is the direct evidence.
What this cannot tell you
Whether the network started it. A slow reply can come from a far end that is itself short of CPU or disk, and from here that looks like a slow network. These counters show the network wait is real. They do not show which resource, on which machine, came first.
Where Commotion begins
Every step above is done by hand, on one machine, while the incident is still happening. Commotion makes the judgement for every process on the node, each second: it judges a process on measured waiting, not on usage, and names which of CPU, memory, disk or network is at the root, with the measurement that proves it.
It runs beside the monitoring you already have. Read one incident, or see what Early Access involves.
Checked on 3 December 2026 against: sar(1), nstat(8), Kernel documentation: SNMP counters, ss(8), ip(8). Command output differs between versions; read your own manual pages.
Stop guessing the cause from graphs.
Sign-up is not open yet; write to commotion@littlebit.in to ask about a trial.