High p99 Tail Latency with Normal Median Latency
Median latency p50 is steady at 12 ms, but p99 spikes to 2,400 ms. Intermittent HTTP 504 timeouts at ingress gateways.
Reveal Diagnostic Command, Root Cause & Remediation
perf top -p <pid> --sort comm,dso && bpftrace -e 'tracepoint:syscalls:sys_enter_futex { @[comm] = count(); }'Periodic stop-the-world garbage collection pauses combined with lock contention on shared in-memory connection pools.
Migrate to non-blocking ring buffers (Disruptor pattern), tune GC allocation rates, and implement client request hedging.