At the end of the day, how much RAM your VPS needs depends on what you run on it. While a small website usually runs fine on 2 GB, a large database or a self-hosted AI model may need 16 GB or more. Keep reading to see where those numbers come from and how to check what your server really uses.
Key points:
- Databases are the hungriest part of most stacks, because they keep hot data in memory.
- When a Linux server runs out of RAM, the kernel starts killing processes.
- Size the server to your actual RAM requirements, then upgrade when monitoring tells you to.
Why does memory matter so much on a VPS?
VPS memory is the workspace for everything that runs on your server: the system, the web server, PHP workers, and the database all share it. When there is enough of it, requests are answered from memory. When there isn’t, the server swaps to disk or, in the worst case, stops processes on its own.
When memory gets too tight, the Linux kernel “must start killing processes to stay operational” (1). The tool that does it is called the OOM (out-of-memory) killer, and it doesn’t ask which process you care about most. It tends to go after a process that uses a lot of memory, and on a web server that can easily be your database.
So you don’t need as much RAM as you can afford, just enough headroom that your normal peak stays well below the ceiling.
How much RAM do different workloads require?
Here is the starting point we’d use when sizing a server. Two “small websites” can behave very differently, so treat these as a guide:
| Workload | Typical starting point | When to go higher |
|---|---|---|
| Static site, landing page, small blog | 1–2 GB | Rarely needed |
| WordPress or WooCommerce, low to medium traffic | 2–4 GB | Many plugins, a busy shop, page builders |
| Several client sites (agency) | 4–8 GB | Each site adds PHP workers and database tables |
| SaaS app with its own database | 4–8 GB | Background workers, queues, Redis, more users |
| Dedicated database server | 8–16 GB | Data set larger than RAM, many connections |
| Game server (e.g. Minecraft) | 4–8 GB | More players, plugins or a modpack |
| Self-hosted AI model on CPU | 8–32 GB | Larger models, several users at once |
Small websites and WordPress
A static site served by Nginx barely touches the memory, but WordPress is different. Each page that isn’t cached is built by a PHP process; every PHP worker takes its own slice of RAM, and MySQL or MariaDB needs its share on top. So a shop with a dozen plugins will feel a 2 GB server long before a simple blog does.
A page cache changes the picture, because cached pages skip PHP and the database almost entirely. If a small site seems to need far more RAM than it should, check the caching before you upgrade.
SaaS platforms and agencies
A typical SaaS stack is an app server, a database, a cache like Redis, and a queue worker or two. Each one is small on its own, but together they add up. Agencies have a similar problem: ten “small” WordPress sites on one server are not small anymore. For both, 4 GB is a sensible floor, and 8 GB leaves room for spikes, deployments, and the odd runaway cron job.
Databases
Databases are where extra memory on a VPS makes the biggest difference. Both MySQL and PostgreSQL keep frequently used data in memory, so a query that hits RAM is much faster than one that has to go to disk.
MySQL’s own documentation shows how much memory it wants when it has a server to itself. With the innodb_dedicated_server option, the buffer pool is set to 50% of RAM on a machine with 1–4 GB, and to 75% above 4 GB. The same page warns not to use that option if MySQL shares the server with other applications (2). On a VPS that also runs your website, you’ll want a smaller share.
PostgreSQL suggests 25% of system memory for shared_buffers as “a reasonable starting value” on a dedicated server with 1 GB or more, and says more than 40% is unlikely to help, because it also relies on the operating system cache (3). There’s a hidden cost too: work_mem applies per sort or hash operation, so a complex query or many sessions can use “many times the value of work_mem” (3). So the more of your data set fits in RAM, the less often queries have to wait for the disk.
Game servers
Every game is built differently, so for the purpose of this article, let’s take Minecraft as an example. One game host recommends adding roughly 1 GB for every additional 5 players on a vanilla or Paper server, and 1 GB for every 10 plugins (4).
Modpacks are much heavier, with minimum recommendations from 5 GB to 8 GB depending on the Minecraft version (4). Remember that a Java game server can’t use more heap than you assign it at startup (the -Xmx flag), and the operating system needs its share on top. So a server with an 8 GB plan shouldn’t hand all 8 GB to the game.
AI applications
If your app calls a hosted model through an API, the model runs elsewhere, and your VPS only needs enough RAM for the app itself. Running a model yourself is a different story: Ollama, a popular tool for running open models, has recommended you should have at least 8 GB of RAM for 7B models, 16 GB for 13B models, and 32 GB for 33B models (5).
How do you check how much RAM your VPS really uses?
Run free -h and look at the “available” column. It estimates how much memory is available for starting new applications without swapping (6). The “free” column only shows memory that isn’t used for anything, and on a healthy Linux server that number is often small, because the kernel uses spare RAM as a disk cache.
Then run top or htop and sort by memory to see which process uses the most, and search the system log for “killed process” to see if the OOM killer has been busy (1). Keep in mind it’s important to do it during your busiest hour, not on a quiet Sunday morning.
Which MVPS plan choose for your VPS RAM requirements?
Our rule of thumb for how much RAM a VPS needs is to start from what you run today and leave about a third of the memory free at peak. Here’s how that maps onto our general plans:
- VPS ONE, 2 GB (€4/month): a personal site, a small blog, a VPN or a test environment.
- VPS BASIC, 4 GB (€7/month): WordPress with a shop, a small SaaS app, a few client sites.
- VPS POWER, 8 GB (€19/month): busier stores, agency servers, a game server for a group of friends.
- VPS EXTRA, 16 GB (€29/month): databases with a growing data set, or a small self-hosted AI model.
- VPS ULTRA, 32 GB (€49/month): large databases, many users, or bigger AI models.
If you need a bit more of everything, our Performance plans offer more RAM per core, for example 5 GB on P-Basic or 12 GB on P-Power, so check them out.
Can you add more RAM to a VPS later?
Yes, and this is where a VPS beats a physical server. At MVPS, you move up to a bigger package rather than adding RAM on its own, and it takes only a few minutes.
Remember it’s easier to upgrade than to downgrade, so perhaps it’s better to start with what you need now and grow from there. Check our offer and configure your VPS.
You may also like: How much traffic a VPS can handle.
FAQ
Is 1 GB of RAM enough for a VPS?
Does more RAM make my website faster?
Should I use swap on a VPS?
How do I know when it’s time to upgrade?
Sources:
- Oracle, How to Configure the Linux Out-of-Memory Killer.
- MySQL 9 Reference Manual, Enabling Automatic InnoDB Configuration for a Dedicated MySQL Server.
- PostgreSQL 18 Documentation, Resource Consumption.
- Shockbyte, How much RAM do I need for a Minecraft server?
- Ollama, README on GitHub (archived versions, e.g. v0.4.3)
- Linux manual page, free(1)



