How Much RAM, CPU, and Storage Does Your VPS Need?
CPU, RAM, and storage figures alone don’t tell you which VPS plan your workload needs. The right choice depends on what you run, how busy it gets, and how much spare capacity you need.
That’s not a bad instinct, and it’s worth replacing with something better, because the three resources fail in very different ways. Running low on CPU makes things slow. Running low on memory makes them stop. Running low on disk makes them break in confusing ways at 3 a.m.
Memory is usually the one that decides
Memory can be a limiting resource for web stacks with several resident services, but the bottleneck depends on the workload. CPU-heavy requests, storage access, and network limits can matter more in other cases. Measure the stack under representative load.
The failure modes differ in a way that matters. CPU saturation often first appears as increasing queue times: requests queue, responses take longer, and the server recovers when the spike passes. Memory pressure can first cause reclaim and swapping; if allocation still fails, processes may be terminated. The kernel’s out-of-memory killer picks a process and ends it, potentially your database or application, and the service goes down rather than getting slower.
Leave enough memory for peak application use, the operating system, and useful caching. Balance that headroom against measured CPU, storage, and network requirements.
Rough baselines for common components
These are starting expectations, not rules. Actual usage varies with configuration, traffic and how much the software has been tuned.
A minimal Linux server with nothing running sits somewhere around 100 to 200 MB once booted. Add a web server like nginx and you’re adding tens of megabytes, since it’s deliberately light.
PHP-FPM is counted per worker, typically 30 to 80 MB each depending on the application, and WordPress with a few plugins sits at the upper end. The worker count is what determines the total. Some distribution examples set pm.max_children to 5, but it is a required configuration value rather than a universal PHP default. Raising the worker limit without measuring per-worker memory can exhaust RAM under load.
MySQL or MariaDB with default settings will claim a few hundred megabytes and can be tuned well below that for small datasets. PostgreSQL’s shared_buffers default is typically 128 MB, but connections, per-operation work_mem, maintenance work, and the OS cache also affect total memory use. The documented guidance suggests around 25% of system memory on a dedicated database server with 1 GB or more, so on a box that also runs your web stack it’s worth setting deliberately rather than copying that figure.
A Node.js application typically runs 50 to 150 MB per process, more with a large dependency tree. Anything on the JVM starts considerably higher and is governed by heap settings rather than by the application’s apparent size.
Docker’s daemon adds something in the region of 50 to 100 MB before any containers, and each container adds whatever it runs.
A small WordPress stack running nginx, PHP-FPM, MariaDB, and the operating system might use roughly 700 MB to 1.2 GB under light load, depending on configuration. That is a baseline, not the amount of RAM to buy. Leave room for concurrent PHP workers, database activity, scheduled jobs, updates, and caching during busy periods. A 1 GB plan offers little margin at that usage; 2 GB may suit a small, well-tuned site, but choose more if measured peaks leave too little headroom. Size for busy periods rather than just enough memory to stay online when traffic is quiet.
Don’t forget the page cache
A detail that causes a lot of unnecessary alarm: Linux uses free memory for disk caching, so free -h on a healthy server shows very little memory “free” and a large amount under buff/cache.
That isn’t memory being wasted or leaked. It’s the kernel accelerating file reads with capacity that would otherwise sit idle, and much of it can be reclaimed when applications need memory, though reclaim and dirty-page writeback can take time. The number to watch is available, not free.
The practical consequence is that a server with no spare memory for page cache will be slower at everything involving disk, even when nothing is swapping. Headroom buys you caching as well as safety.
Measuring what you actually use
Guessing gets you to a starting point. Measurement gets you to the right plan, and the tools take a minute to learn.
free -h gives the overall picture; read the available column. htop shows per-process usage interactively and sorts by memory with one keystroke. For a clearer per-application breakdown, smem (packaged in Debian and Ubuntu) or ps_mem (available through some distributions or an isolated Python installation) helps account for shared memory, which standard tools do not, so it avoids double-counting the memory that forked workers share.
On a systemd-based distribution, systemd-cgtop shows resource usage grouped by service, which is the fastest way to find out which unit is responsible for what.
For CPU, the number that matters is not the instantaneous percentage but the shape over time. vmstat 1 during a busy period tells you whether you’re genuinely CPU-bound or just waiting on disk, and the st column reports time the hypervisor did not schedule a runnable virtual CPU. It can indicate host contention, but does not identify other guests as the cause or prove overselling.
Take readings during your actual peak rather than whenever you happen to log in. A week of data from a lightweight monitoring agent is worth more than any amount of reasoning about what a stack should use.
Sizing CPU
One or two vCPUs may be a reasonable starting point for a small website, API, bot, or monitoring service. Request complexity, concurrency, background work, and processor performance matter more than daily visitor count alone. Test peak demand before choosing a final size.
The question worth asking is whether your workload is concurrent or serial. Web traffic is concurrent: many small requests at once, which benefits from more cores. Many game servers, single-threaded scripts and the linking step of a build are serial or partly serial, where single-thread performance matters more than core count. Compiling a large project and video transcoding, on the other hand, will happily use every core you give them.
That distinction is the one that gets buying decisions wrong. A game server with a single-threaded main loop may benefit more from stronger per-thread performance than from additional cores. Compare benchmarks for the actual CPU models rather than clock frequency alone.
Watch for sustained saturation rather than spikes. Brief peaks to 100% are normal and harmless. A vmstat run queue, the r column, consistently above your core count through the busy hours means you’re actually short. Load average is a rougher signal on Linux because it also counts processes waiting on disk, so check wa before blaming the CPU.
Sizing storage
Storage planning fails in a specific way: people size for today’s data and forget the things that grow on their own.
The operating system plus a typical stack takes 5 to 10 GB. Your application code is usually small. Your database is whatever it is today, and it grows with usage.
The quiet consumers are logs, which grow continuously unless rotation is configured; package caches, which accumulate; container images, which accumulate faster; and backups, if anyone has pointed them at the local disk. That last one deserves its own sentence: a local backup may help recover an accidental change, but cannot protect against loss of that server or disk. Keep an independently recoverable copy elsewhere and include local backup files in storage planning.
A reasonable rule is to keep usage below about 70% of capacity on a server you’re not watching closely, and to make sure something alerts you before it reaches 90%. A full root filesystem produces failures that look like everything else: databases refusing writes, package managers failing, services not restarting, logs not recording why.
Capacity is one dimension; speed is the other. NVMe storage changes the performance profile of database and I/O-bound workloads substantially compared with older SSD or spinning disks, which is why the same database can feel completely different on two plans with identical capacity. If your workload is storage-heavy in volume rather than in speed, that’s a different product entirely, and paying NVMe prices for archive data is a waste.
When to add more, and what to add
Choose a starting size that covers expected demand with room for bursts, then adjust using measured usage. Check resize options first: CPU and RAM upgrades may require a reboot, disk growth can be one-way, and a product-family change may require migration. A plan bought on a guess tends to stay bought.
Investigate memory demand when available regularly approaches zero or active swapping is sustained, or when the out-of-memory killer has appeared in your logs even once. Check sudo dmesg or journalctl -k for it, since the service that died often doesn’t say why.
Add CPU when saturation is sustained through your busy hours and response times track it, not because a graph occasionally touches the top.
Add storage before you need it, since it’s the one that causes damage rather than slowness when it runs out.
A note on swap: it’s a safety net, not capacity, and our guide to setting up a new VPS shows how to add a swap file. A small swap file gives the kernel somewhere to put rarely-used pages and can prevent an out-of-memory kill during a brief spike, which is genuinely useful. A server that swaps continuously is a server that needs more memory, and tuning vm.swappiness as described in the kernel’s documentation changes when swapping happens rather than whether you have enough.
Finally, vertical scaling has a natural end. When one machine is doing several jobs that contend with each other, moving the database onto its own server often helps more than adding resources to the combined one, because the workloads stop competing for the same page cache.
Wrapping up
The right balance of RAM, CPU, and storage depends on the workload. Size each against measured busy-period demand, allow for growth, and check how the plan can be resized.
Measure before you buy where you can, measure after you buy either way, read available rather than free, watch for sustained conditions rather than spikes, and keep backups off the disk they’re protecting. Start modest, scale on evidence, and the plan you end up with will fit the workload rather than the guess.
Thanks for reading! If you’d rather start small and move up as you learn what the workload needs, V.PS offers KVM VPS from compact yearly plans through to flagship AMD EPYC servers, with NVMe storage on the Cloud line, a dedicated IPv4 and IPv6 on every plan, and a 99.9% SLA. Bulk storage workloads have their own Storage KVM VPS line so you’re not paying NVMe prices for archives.
Ready to get started? Deploy a server or contact our team if you need help choosing a plan.
Frequently asked questions about VPS sizing
How much RAM does a WordPress site need?
A small WordPress stack might use roughly 700 MB to 1.2 GB under light load, but that is not a sizing target. Leave room for concurrent requests, plugins, database work, scheduled jobs, and caching. A 2 GB plan may be a starting point for a small, well-tuned site; choose more when representative peak usage shows that you need it, rather than running close to the memory limit.
Why does my server show almost no free memory?
Because Linux uses otherwise idle memory for disk caching, which speeds up file reads and can often be reclaimed when an application needs it. Read the available column in free -h rather than free, since that reflects what a new process could actually claim.
Do I need more vCPU or more RAM?
It depends on the measured bottleneck. Memory pressure can cause reclaim, swapping, and eventually process termination; sustained CPU saturation can increase queues and timeouts. Check whether your busy hours show sustained CPU saturation before buying cores, since the graph is usually flatter than people expect.
How much disk space should I leave free?
Aim to stay below roughly 70% on a server you don’t monitor closely, and alert before 90%. Logs, package caches and container images grow on their own, and a full root filesystem causes failures that are hard to diagnose because logging stops too.
Should I add swap to my VPS?
A small swap file is worth having as a safety net for brief spikes, since it can prevent an out-of-memory kill. It isn’t a substitute for memory. If the server swaps continuously rather than occasionally, that’s a sizing problem rather than a tuning one.
Is it better to start small and upgrade, or buy headroom up front?
Start small for most projects. Measuring real usage for a few weeks tells you more than any estimate, and resize options, disk restrictions, and downtime requirements should be checked before relying on an upgrade. The exception is anything where a resize means downtime you can’t schedule, in which case buy one step above your measured peak.
Share