Check for ephemeral port exhaustion
Count TIME-WAIT sockets and compare with the local port range; tune tw_reuse, not tw_recycle.
ss -tan state time-wait | wc -l; sysctl net.ipv4.ip_local_port_range
- tool
- troubleshooting32 commands
More troubleshooting commands
-
ss -s; ss -tan state syn-sent | wc -lShow socket totals by state; many SYN-SENT sockets point to dropped SYNs or a firewall.
-
tracepath -n <host>; ping -M do -s 1472 -c2 <host>Find the hop where the MTU drops; ping -M do forbids fragmentation, so you can find an MTU black hole.
-
ip route get <ip>; ip neigh show | grep -E 'FAILED|INCOMPLETE'Show the real source address and interface for a destination; FAILED or INCOMPLETE neighbor entries mean an L2/ARP problem.
-
traceroute -T -p 443 <host>; nc -zv <host> 443TCP SYN traceroute gets through ICMP filtering; nc -zv confirms the port is open.
-
curl -sv --resolve <host>:443:<ip> https://<host>/healthzSend the request to a specific IP to test a backend while keeping the right SNI and Host header.