On this pageFind the work no cache absorbs
A page cache makes a cached WordPress page cheap to serve, so cached traffic rarely decides the size of the server. The work no cache can absorb does: logged-in users, carts, searches, the editor, scheduled jobs. Size the server from that work, check the host against a short list, then prove the choice with a load test while you can still change your mind. For the software stack itself (Apache, Nginx or OpenLiteSpeed), see our guide to choosing a WordPress web server.
Find the work no cache absorbs
Each of these runs PHP and queries the database on every request:
- Logged-in users: editors, members, students and customers bypass the page cache.
- WooCommerce cart, checkout and account pages, which must stay out of page caches.
- Search results (
?s=) and filtered listings with query strings. - Comments and forms that post data.
- The dashboard and block editor, which call the REST API as you type.
- Scheduled jobs through WP-Cron: imports, emails, feeds, backups.
- Plugin requests to
admin-ajax.phpor the REST API from front-end widgets.
Estimate the peak, not the average: how many people are logged in at the busiest hour, how many orders arrive in that hour, and how many PHP requests each visit triggers.
Memory: count PHP workers first
Every uncached request occupies one PHP-FPM worker until it finishes. The memory you need is roughly the number of workers times the size of one worker, plus the database, an object cache and the operating system. Measure the worker size on a copy of your site under realistic clicks rather than guessing:
ps --no-headers -o rss -C php-fpm8.3 \
| awk '{sum+=$1; n++} END {printf "%d processes, %.0f MB average\n", n, sum/n/1024}'
Then do the arithmetic. On a 4 GB server, keep about 1 GB for the system, web server and object cache, and 1 GB for the database's buffer pool. If workers average 100 MB, the remaining 2 GB fits 20 of them, so set pm.max_children = 20 in the pool configuration. PHP's memory_limit (128 MB in a default php.ini) is a ceiling for one request, not its typical use, so multiplying the limit oversizes the server.
When every worker is busy, new requests wait. PHP-FPM records it in its log with a line saying the server reached the pm.max_children setting: a sign to add workers if memory allows, or to resize.
CPU: cores cap parallel PHP
The vCPU count limits how many PHP requests run at the same moment, and the speed of a single core decides how long each one takes. As an illustration: if an uncached page needs 250 ms of CPU time, one core finishes about four of them per second, and anything above that queues. More cores raise the ceiling for many simultaneous visitors; faster cores shorten every uncached request, including the checkout and the editor. On shared vCPUs, watch the st (steal) figure in top: a steady value above zero means other tenants are taking cycles you expected.
Database, object cache and storage
MariaDB and MySQL ship with a 128 MB InnoDB buffer pool. Raise innodb_buffer_pool_size until the hot tables fit, which you can estimate from the largest tables:
SELECT table_name, ROUND((data_length + index_length) / 1024 / 1024) AS size_mb
FROM information_schema.tables
WHERE table_schema = 'wordpress'
ORDER BY size_mb DESC
LIMIT 10;
An object cache such as Redis or Valkey, with a matching plugin, keeps repeated queries away from the database for logged-in traffic, and needs only a small slice of memory. For storage, add up the WordPress files, the database, and the media library from du -sh wp-content/uploads, then leave room for growth: WordPress saves several resized copies of every uploaded image, and updates and local backups need free space too.
Starting points
| Site | Uncached load | Start with |
|---|---|---|
| Brochure site or blog with a page cache, one or two editors | Dashboard, forms | 1 vCPU, 1 GB |
| Busy blog with search and comments, or a few small sites | Search, comments, editors | 1 vCPU, 2 GB |
| Membership site, online courses, small WooCommerce store | Logged-in pages, carts, checkout | 2 vCPU, 4 GB |
| Store with steady orders, many members logged in at once | Most requests | 4 vCPU, 8 GB, then move the database out |
These are starting points to test, not benchmarks. On CloudSat, they match Cloud VPS plans at $2.78, $5.98, $11.58 and $21.18 a month, and High Frequency plans offer the same sizes on AMD Ryzen cores at 4.2 GHz or more, which suits PHP because each request runs on a single core.
Self-managed means these jobs are yours
A managed WordPress host takes some of the upkeep off your hands, at a higher price and with less control over the stack. On a self-managed VPS, you own all of it:
- Operating system, web server and PHP updates, including major PHP upgrades.
- WordPress core, plugin and theme updates, tested on a staging copy first.
- TLS certificates and their renewal.
- Backups copied off the server, and a restore you have actually tried.
- Monitoring for uptime, disk space and certificate expiry.
- Cleanup and root-cause work if the site is ever compromised.
If nobody on the team will do these monthly, a managed host is the better purchase.
What to verify with any host
| Check | Why it matters for WordPress |
|---|---|
| Region close to most visitors | Network distance adds to every uncached response |
| CPU model, clock and shared or dedicated vCPUs | Single-core speed sets PHP response times |
| NVMe storage and disk size | Database reads and media growth |
| Snapshots and backups: price, retention, restore | Rolling back a failed update, recovering a hacked site |
| Cloud firewall | Closing database and admin ports before traffic reaches the server |
| IPv4 and IPv6 included, reverse DNS | Reachability and mail reputation |
| Outbound mail policy | Most WordPress sites should send through an SMTP relay anyway |
| Billing: hourly or monthly, transfer allowance, overage | What a traffic spike or a resize costs |
| Support hours and scope | Who answers, and what a self-managed plan excludes |
| Refund window and exit | Time to test, and a clean way to take files and database elsewhere |
Prove the size before the window closes
Run this plan on a copy of the real site, with the plugins, theme and caching you will use in production. Test only servers you own.
Measure a baseline
From your own machine, time a cached page and a search page:
curl -s -o /dev/null -w 'TTFB %{time_starttransfer}s total %{time_total}s\n' https://staging.example.com/
curl -s -o /dev/null -w 'TTFB %{time_starttransfer}s total %{time_total}s\n' 'https://staging.example.com/?s=shipping'
Load test from a second machine
Use k6 with a mix of a cached page and an uncached search. Set the target to your expected peak, then double it:
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '1m', target: 10 },
{ duration: '3m', target: 30 },
{ duration: '1m', target: 0 },
],
thresholds: {
http_req_failed: ['rate<0.01'],
http_req_duration: ['p(95)<800'],
},
};
export default function () {
const home = http.get('https://staging.example.com/');
check(home, { 'home is 200': (r) => r.status === 200 });
const search = http.get('https://staging.example.com/?s=shipping');
check(search, { 'search is 200': (r) => r.status === 200 });
sleep(1);
}
Run it with k6 run wp-load.js, or without installing anything through docker run --rm -i grafana/k6 run - <wp-load.js. The thresholds make k6 report a failure when more than 1% of requests fail, or when 95% of requests do not complete within 800 ms; replace 800 with your own target.
Watch the server, then decide
During the run, follow CPU and steal in top, memory with free -m, max_children warnings in /var/log/php8.3-fpm.log, and the database's slow query log. If the thresholds pass at double the peak, keep the size. If workers run out while memory is free, raise pm.max_children; if memory or CPU runs out, resize and repeat.
CloudSat servers are self-managed and deploy with WordPress or WordPress on OpenLiteSpeed ready to configure, and within 14 days of your first top-up, the unused part of what you paid can be refunded (refund policy), enough time to run this plan.
FAQ
Is 1 GB of memory enough for WordPress?
For a cached blog with a few editors, yes, with a handful of PHP workers and swap as a safety margin. It is too tight for WooCommerce or a membership site, where most requests skip the cache.
Do I need more vCPUs or faster ones?
More vCPUs help when many uncached requests arrive at once. Faster cores help every uncached request, which is what editors and shoppers feel. A store usually needs both before a blog needs either.
When should the database get its own server?
When it competes with PHP for memory or CPU at peak, or when you want replication. Until then, one server is simpler to run and to back up.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




