A short load test answers whether the site holds a number of users for a few minutes. Many failures do not happen in the first minutes. They happen after three hours of Black Friday traffic, when memory has crept up, the connection pool has slowly emptied, or a nightly job starts while the shop is still busy. A soak test exists to find those.

Soak test, endurance test: the same thing

The two names are used for the same test: a steady load held for a long time. Some teams also say longevity test. What makes it a soak test is the duration, not the number of users. The load is usually the traffic you expect at a normal busy time, or somewhat below the limit a capacity test found, so that anything that gets worse is caused by time, not by overload.

What only a long test finds

Problem What you see during the test Typical cause
Memory leak Memory use rises steadily and never comes back down; response times grow; the process restarts or is killed Objects kept in a cache or a list that is never emptied, listeners added on every request
Connection leak The database or HTTP connection pool slowly runs out; requests start waiting for a connection A code path that opens a connection and does not return it, often on errors
Disk filling up Free disk space falls; the service fails when it hits zero Logs, temporary files or uploaded files that are never cleaned up
Growing tables and caches Queries get slower hour by hour Session or cart tables that grow without clean-up, caches without an expiry
Scheduled jobs A sudden drop at a fixed time A backup, import or report that runs while traffic is high
Slow degradation in third parties A payment, search or stock service slows down after a while Rate limits that apply per hour, quotas, throttling

None of these show in a ten-minute test. Some show only after the first hour, some only after a day.

How long should a soak test run?

Long enough to cover what you are worried about. A few rules of thumb:

  • At least as long as the real peak. If a campaign keeps traffic high for six hours, test for six hours.
  • Long enough to see a trend. A memory leak that adds 50 MB an hour needs several hours before it is obvious.
  • Across the scheduled jobs. If a backup runs at 02:00, run the test across 02:00.

Many teams run two to eight hours before a big peak and a 24-hour test less often, for example before a major release.

What to watch

A soak test is only as good as the measurements taken during it. Before you start, make sure you can see, minute by minute:

  • Response times over time, both the average and a percentile such as p95. A flat line is the goal; a slope is the finding.
  • Error rate over time. Errors that appear only after hours are the clearest sign of a leak.
  • Memory of each process or container, and whether it ever comes back down.
  • Open connections to the database and to other services.
  • Disk space and log volume.
  • Queue lengths and background job durations, if the site uses them.

Compare the first hour with the last. If the numbers are the same, the test passed.

Soak test vs load and stress test

Load test Stress test Soak test
Load Expected peak Beyond the peak, until failure Normal or expected, steady
Duration Minutes Minutes Hours
Question Do we hold the peak? Where do we break? Do we stay healthy over time?
Typical finding A slow query, a full pool The first resource to give way A leak or a job that collides with traffic

The three complement each other. Load testing vs stress testing goes through the first two.

How to run a soak test

  1. Find the limit first. Run a load or capacity test so you know what the site can take. Soak at a load safely below it.
  2. Use realistic journeys. A soak test of the home page alone misses carts, sessions and orders, which are what grows over time.
  3. Ramp up, then hold. Add users gradually to the target, then keep the number constant.
  4. Record everything over time, as listed above.
  5. Stop on purpose, and watch the recovery. After the test, memory and connections should return to normal. If they do not, something is still holding on to them.

With Supervisor

A controlled test with real browsers can run for up to 2 hours. You add users step by step, keep the number steady, watch the live browsers, and pause or restart users that fail. That is enough to see most leaks that matter during a peak. For a longer soak, our performance engineer can run a managed load test and watch your servers while it runs.

A scheduled test finds a different kind of slow decline: one that happens over days and weeks of releases. Each scheduled run is compared with the median of the previous five, and you get an email if the site got slower.