Planning

How Much RAM Does a VPS Need?

A practical guide to VPS memory sizing for WordPress, small apps, databases, and background workers.

The Short Answer

Most small VPS projects should start with 2GB RAM. Use 1GB only for static sites, tiny services, or experiments. Use 4GB or more for WordPress with traffic, WooCommerce, databases, search, queues, or multiple applications.

RAM is the resource that turns small mistakes into outages. When Linux runs out of memory, the OOM killer starts terminating processes. That can take down MySQL, PHP-FPM, Node, Redis, or your app with very little warning.

1GB RAM

1GB is workable for learning Linux, running a small static site, a lightweight reverse proxy, a tiny API, or a low-traffic app with external database hosting.

It is tight for WordPress. You can make it work with swap, page caching, and careful plugin choices, but it leaves little headroom for updates, backups, image processing, or traffic bursts.

2GB RAM

2GB is the practical minimum for a serious small VPS. It can run Nginx, PHP-FPM, MariaDB, Redis, and a modest WordPress site if configured carefully.

It is also a comfortable size for small Node, Python, or Go applications where the database is either small or hosted elsewhere.

4GB RAM

4GB is the safer default for business WordPress, small WooCommerce stores, several low-traffic sites, or applications with background workers.

The extra headroom makes routine operations less fragile. Backups, updates, cache warmups, log rotation, and database maintenance are less likely to compete with live traffic.

8GB and Up

Use 8GB or more when the server hosts multiple production sites, a meaningful database, Elasticsearch or OpenSearch, heavy queues, container stacks, or anything with unpredictable traffic.

Memory also matters for caching. More RAM can mean a larger database buffer pool, better object cache hit rates, and fewer disk reads.

Always Add Swap

Swap is not a replacement for RAM, but it can prevent sudden crashes during short spikes. A small swap file gives the kernel somewhere to put cold pages instead of killing processes immediately.

For small VPS servers, 1GB to 2GB of swap is usually sensible. Monitor it. If swap is constantly used, buy more RAM.

Verdict

If you are unsure, start at 2GB for experiments and 4GB for business sites. RAM is cheap compared with debugging random process deaths at midnight.

Rather than DIY? Let OpsHelp handle everything.

Managed hosting with support, security, backups, and monitoring — from £50/mo.

Get Managed Hosting →

Need help with your server setup?

OpsHelp provides professional server management, setup, and hardening services.

Get Help from OpsHelp →