A soak test shows memory climbing steadily over 8 hours. What's next?
BeginnerScenarioCapacity & Load Testing
Answer
Situation read → Classic memory or resource leak; short load tests would never find it.
What I'd do →
- Confirm with container memory working set, not just RSS:
container_memory_working_set_bytes{namespace="shop",container="checkout"} - Check other resources too: open file descriptors, goroutines or threads, DB connections.
- Take heap profiles at the start and after a few hours and compare.
- Fix, then repeat the soak test as a release gate for that service.
Why → Leaks appear over time; soak tests catch them before they cause nightly OOM incidents.
Interview tip → Mention comparing two heap snapshots.
More on Capacity & Load Testing
Marketing announces a campaign that will bring 5x normal traffic in three weeks. Prepare.IntermediateA load test shows p99 latency jumps from 120 ms to 2 s at 800 RPS, while CPU is only 45%.IntermediateYou're asked how many pods are needed for Black Friday. Walk through the calculation.IntermediateYour HPA scales out during spikes, but users still see errors for the first 2 minutes.AdvancedThe load test passed in staging, but production fell over at half that load.AdvancedYou need to add load testing to CI for every release without making the pipeline slow.Intermediate