How much RAM does a Minecraft server need?
A plain guide to choosing memory for a Minecraft Java server, by number of players and by what you run on it, with the signs that tell you it is time for more.
3 min read
The short answer: about 1 GB for every five players on a plain server, with a floor of 2 GB. Plugins, mods and a large view distance all push that up.
A starting point by player count
These figures are for a Paper or vanilla server with a handful of plugins.
- 2 GB: you and a few friends, up to about 10 players.
- 4 GB: a small friend group or a new survival server, up to about 20 players.
- 6 GB: a growing survival world with more plugins, up to about 30 players.
- 8 GB: a busy SMP, up to about 40 players.
- 10 to 12 GB: a community server with many plugins.
- 16 GB: large communities and the heaviest setups.
Treat these as where to start, not as limits. Two servers with the same number of players can need very different amounts of memory.
What uses memory
Mods and modpacks
Mods add blocks, creatures and whole dimensions, and all of it sits in memory. A light Fabric setup with a few performance mods needs little more than vanilla. A large modpack with 150 or more mods often needs 6 to 8 GB before the first player joins. The modpack's own page usually states a minimum. Start from that number.
Plugins
Most plugins are small. The ones that cost memory are world tools such as map renderers and large protection or economy plugins that keep a lot of data loaded. Twenty small plugins matter less than one map plugin.
View distance and world size
Each player keeps the chunks around them loaded. A view distance of 10 loads roughly four times as many chunks per player as a view distance of 5. If memory is tight, lowering view-distance in server.properties is the quickest fix, and simulation-distance can go lower still without players noticing much.
How spread out players are
Ten players building together load far fewer chunks than ten players exploring in ten directions.
More RAM is not always the fix
Memory stops a server from running out of room. It does not make the game loop faster. If the server has free memory and still lags when a big farm runs or many creatures are loaded, the limit is the processor, not the RAM. Minecraft's main work happens on one core, so a faster core helps more than extra memory. Ryzen 9 or EPYC covers that choice.
Signs you need more memory
- The console shows
OutOfMemoryError, or the server restarts by itself under load. - Lag arrives in short freezes every few seconds, which is the server pausing to clear memory.
- The memory figure on your server's page sits near the top of the bar most of the time.
Start small and move up
You do not have to guess right on day one. On Mavelo you can move to a bigger plan from My servers at any time and pay only the difference for the days left in your month. Your world stays as it is. Restart once and the new limits apply.
The Minecraft hosting plans list the memory, CPU share and storage of each plan, and the slider above the table suggests one for your player count.

