The app is slow, but CPU, memory, and disk all look fine. Where do you look next?
IntermediateTroubleshootingLoad, CPU and I/O performance
Answer
Likely causes → Waiting on something external: DNS, a slow downstream API/DB, network retransmits, lock contention, or connection pool exhaustion.
Diagnose →
ss -tnp state established | wc -l
nstat -az | grep -Ei 'retrans|timeout'
strace -f -tt -T -e trace=network -p <PID> 2>&1 | head -50 # slow connect()/recv()
time getent hosts api.internal
Fix → Fix the slow dependency: DNS caching, increase pool size, timeouts with retries, or fix packet loss.
Prevent → Distributed tracing and per-dependency latency metrics.
More on Load, CPU and I/O performance
Load average is 35 on an 8-core server, but `top` shows CPU 85% idle.Intermediate`top` shows `wa` at 60% and the application is crawling.Beginner`iostat` shows a disk at `%util 100` but throughput is only 5 MB/s.IntermediateCPU usage is moderate, but the app's latency doubled after moving to a larger VM with two NUMA nodes.AdvancedA server's CPU usage is 100% and `top` shows `kworker` or `ksoftirqd` at the top.AdvancedOne CPU core sits at 100% while the others are idle, and the app can't go faster.Intermediate