There is no honest "X GB for Y players" table. Memory use depends on the edition, the server software, the mods or plugins you run and, above all, how much of the world is loaded at once. This guide shows how to make a sensible first estimate, how to read real memory use, and when a larger plan is the right answer and when it isn't.
If your server has already crashed with exit code 137, start with the exit code 137 guide instead. This page is about sizing before that happens.
Start from edition, world and workload
Before you look at numbers, answer four questions:
- Java or Bedrock? They are separate servers with different software. Most of this guide is about Java Edition, where memory is controlled through the Java heap. On Bedrock, watch the server's total memory use in the panel instead.
- Vanilla, plugins or mods? A vanilla or Paper server with a few plugins is the light end. Forge, NeoForge or Fabric modpacks are usually much heavier, and large packs can need several times the memory of a vanilla world. Paper vs vanilla explains the difference between plugins and mods.
- How much world is loaded? Every loaded chunk costs memory. Players spread out across the map, high view and simulation distances, and lots of new terrain being generated all push memory up. Ten players building together in one base load far less than ten players exploring in different directions.
- What runs in the background? Big farms, many entities, map renderers and heavy automation all add load.
Use the RAM calculator as an estimate
The RAM calculator turns server type, player count and plugin count into a starting figure. Use it for exactly that: a starting point. It can't see your modpack's actual mods, your view distance or how your players play.
A practical way to use it:
- Enter your realistic setup, not the best case.
- Treat the result as the minimum to test with, not a guarantee.
- For modpacks, check whether the pack's own documentation lists a recommended server memory, and compare.
Players alone do not determine RAM
Player count is the easiest number to know, so it gets too much weight. Two servers with the same number of players can need very different memory if one runs a 200-mod pack with players scattered across the map and the other is a small Paper survival world. Plan from your workload; use player count as one input among several.
Read total memory, not only heap
On a Java server, the -Xmx value sets the maximum size of the Java heap, the memory for world data, entities and so on. But the Java process uses more than the heap: class metadata, threads, native libraries and the garbage collector all take memory on top. Your plan's memory limit applies to the whole process, not only to the heap.
Two things follow from that:
- Don't set the heap equal to the plan's full memory. Leave headroom between the heap and the limit. If the whole process goes over the limit, the server can be stopped by the system, which is what exit code 137 often indicates. How the heap is configured on your server is shown in the panel's startup settings. Check your panel before changing it, and change one value at a time.
- Don't panic when the memory graph looks full. The JVM tends to reserve heap and keep it, so a panel graph near the plan's size can be normal. The question is whether the server is struggling: long pauses, falling TPS, out-of-memory errors in the log or crashes.
For a better look inside the heap, a profiler such as spark can show heap use and garbage collection activity on supported server types.
Test at normal and peak load
An estimate becomes a decision once you have watched the server under real use:
- Watch a normal evening. Note memory use and tick health (for example
/tpson Paper or/tick queryon recent vanilla) while your usual players are online. - Watch a peak. The heaviest moments are often when several players explore new terrain at the same time, or right after you add mods.
- Look for patterns, not single spikes. A brief spike during world generation is different from memory that climbs until the server crashes.
- Check the log after problems.
OutOfMemoryErrorlines, long garbage collection pauses or a stop with exit code 137 are the signs that matter.
Optimise before choosing a larger plan
More RAM is the right fix when the workload genuinely needs it. It is not a fix for everything. A server that is CPU-bound or running a broken mod won't get faster with memory it doesn't use. Try these first, one at a time:
- Lower view distance and simulation distance in
server.propertiesif they are high. - Pre-generate the world around spawn with a pre-generation plugin or mod so new terrain isn't created during play.
- Review heavy plugins and mods. Remove what nobody uses, update the rest, and check for known memory issues.
- Restart on a schedule if your setup slowly builds up memory over days.
If memory still runs out under your normal workload after that, a plan with more RAM is the reasonable next step. Plan changes are explained on the Minecraft page, where the plans differ in RAM and storage. For modded servers, see modded Minecraft hosting and the modpack installation guide.