"How many users can my server handle?" has no answer you can look up. It depends on what your users do, how your code and database behave under contention, and what "handle" means to you. The good news: you can measure it in an hour, and the method is the same for any stack.

First, define "handle"

A server "handles" a load when it stays inside limits you choose. Pick three before you test:

  • Latency: for example, 95% of requests answer within 500 ms (the p95).
  • Errors: for example, fewer than 1% of requests fail.
  • Stability: the numbers stay flat for several minutes, not just the first one.

Without limits, every server "handles" any load: it just gets slower until people leave. With limits, capacity becomes one number you can track: the highest load at which all three still hold.

Why rules of thumb do not work

You will find claims like "a 2 vCPU server handles 1,000 users". They are meaningless without context:

  • Users are not requests. A user reading an article sends a request every 30 seconds; a user in a checkout sends five in two seconds. 1,000 readers and 1,000 shoppers are very different loads (see concurrent users vs requests per second).
  • The bottleneck is rarely the CPU. It is usually the database (slow queries, locks, too few connections), an external API, or a pool that is too small: PHP-FPM workers, Node event loop, Puma threads, database connections.
  • Caching changes everything. A cached page can be 100 times cheaper than an uncached one. Test the pages that cannot be cached: search, login, cart, dashboards.

The method: a step test

Run a test that increases the load in steps and holds each step long enough to settle:

Step Arrival rate Hold
1 10 users / s 2 min
2 25 users / s 2 min
3 50 users / s 2 min
4 100 users / s 2 min
5 200 users / s 2 min

Each "user" walks a real journey: open the home page, search, open a result, sign in, add to cart. Use realistic pauses between steps (2 to 5 seconds) and different test accounts, so the database is not answering the same row from cache every time.

Reading the result

Plot p95 latency and error rate against the arrival rate. You will usually see three zones:

  1. Flat: latency barely moves as load grows. Plenty of headroom.
  2. The knee: latency starts to climb faster than the load. Something is queueing: a pool, a lock, the database.
  3. Collapse: latency explodes and errors appear (timeouts, 502s, 503s).

Your capacity is the last step before the knee where your limits still hold. If p95 stays under 500 ms up to 50 users per second and jumps to 1.4 s at 100, your answer is "about 50 users arriving per second on this journey", not 100.

Then convert it to something the business understands. If an average visit lasts 4 minutes and new visitors arrive at 50 per second, about 12,000 people are on the site at once (50 × 240 s).

Make the number bigger

Look at what saturated at the knee and fix that one thing:

  • Slow queries: add the missing index, remove N+1 queries (how to find the bottleneck in a slow API).
  • Pools: raise worker or connection pool sizes if CPU and memory allow it.
  • Cache: cache what many users read and few change.
  • Timeouts: a slow third-party API without a timeout ties up workers for everyone.

Run the same step test again and compare. Capacity work is a loop: measure, fix the top bottleneck, measure again.

Doing it with Hoofbeat

Paste your URL into Quick test for a first one-minute answer, or describe the journey in HoofbeatChat ("sign in, search, add to cart, step from 10 to 200 users per second"). Hoofbeat runs a smoke test first, shows p50/p95/p99 per step as the load grows, and ends with a capacity verdict such as "handles 50 concurrent users". Keep the run as a baseline, and every later run is compared with it.