SimuVedaSystem Design Lab Open in the lab

Testing and reliability / Intermediate / 6 min / Updated

Load testing: ramp, spike and soak tests, find the knee

Ramp traffic until p95 jumps, spike to a sale-day peak and soak for a day to catch a memory leak. Find whether CPU or the DB pool breaks first.

Start the simulation → Change the load, break a part, watch what happens. Free, no sign-up.

In short

What is load testing?

Send many fake users at a service to find its capacity, the knee where latency jumps, and leaks under long runs.

Why does it matter?

Functional tests use one user; capacity and memory bugs only appear under real volume.

What is the trade-off?

Ramp finds the knee, spike tests sudden peaks, soak finds leaks; each needs a production-like setup to mean anything.

How do you explain it in an interview?

"Load test to 2x expected peak, find the bottleneck (CPU or DB pool), soak for 24 hours before launch."

Check yourself

What is the knee in a load test?

Answer: The traffic level where latency suddenly starts climbing steeply. Near capacity, requests queue and p95 grows much faster than traffic.

You add app servers but capacity stops growing. Why?

Answer: Another resource, such as the database connection pool, is now the bottleneck. Capacity is set by the tightest resource, not the one you keep adding.

Which test finds a slow memory leak?

Answer: A soak test that holds normal load for many hours. A leak of a few MB an hour only shows after a long run.

See it happen in the simulation →

load testingstress testingsoak testspike testperformance testingk6jmetercapacitytesting and reliability

More in testing and reliability