Latency results look terrible, but the server's histograms show p99 of 80 ms. Load generator CPU is at 100%.

IntermediateTroubleshootingk6 Load Testing
Answer

Likely causes → The load generator is the bottleneck: k6 cannot process responses fast enough, so measured times include client-side scheduling delay.

Diagnose → Watch generator CPU and memory during the test (top, node metrics); compare http_req_waiting against server-side latency.

Fix → Give the generator more CPU, simplify the script (avoid heavy JSON parsing or large check functions per response, use discardResponseBodies: true when bodies are not needed), or distribute the test.

Prevent → Keep generator CPU below roughly 80% during tests and record it alongside results.

All SRE & Reliability questions Roadmap: SRE & incident response

More on k6 Load Testing