MinecraftServers100

Server RAM calculator

Estimate how much memory your Java server needs from the number of players and the plugins or modpack you run.

Start with 4 GB

Plan for 4 to 5 GB if your world and player count grow.

An estimate from the starting points in our RAM guide, not a measurement. Watch the real usage once players are on, and adjust.

How the estimate works

Every server needs a base amount for Minecraft itself, the world and your plugins or mods, plus some memory for each player, mostly for the chunks loaded around them. Modpacks start much higher because every mod adds blocks, items and code that stay in memory.

The estimate assumes the default view distance of 10. Lowering it to 6 or 8 in server.properties saves a lot of memory on busy servers. If a modpack's author publishes a recommendation, use that instead.

When more RAM doesn't help

If the server lags while memory isn't full, the bottleneck is usually the CPU: too many entities, redstone or chunk generation. More RAM won't fix that, and a heap much bigger than needed can make lag spikes longer. A profiler like spark shows what is using the time.

Setting the memory

On a host you pick a plan with the right amount. On your own machine, the start script generator writes the -Xms and -Xmx settings for you.