How much RAM does a Minecraft server need?
Updated 2026-11-26
How much memory a server needs depends on how many players are online, how far they spread out, and which plugins or mods you run. A small survival world needs far less than a big modpack full of machines.
There is no fixed amount per player. Use the table as a starting point and adjust after watching your server with real players on it.
Starting points for Java servers
These are Java heap sizes (the -Xmx value), not including memory for the operating system.
| Server type | Players online | Starting RAM |
|---|---|---|
| Vanilla or Paper | 1-5 | 2-4 GB |
| Vanilla or Paper | 5-10 | 4 GB |
| Survival, a few plugins | 10-20 | 4-6 GB |
| Survival, many plugins | 20-40 | 6-10 GB |
| Large survival community | 40-80 | 10-16 GB |
| Light modpack | 2-10 | 4-6 GB |
| Medium modpack | 5-15 | 6-10 GB |
| Heavy modpack | 5-20 | 10-16 GB or more |
Modpack authors often publish their own recommendation; follow that when there is one.
Bedrock servers
Bedrock Dedicated Server isn't Java and has no heap setting. Its memory use grows with the world, players, simulation distance and add-ons. Watch the actual usage instead of using the Java numbers.
What uses memory
- View distance: more chunks kept loaded around every player.
- Simulation distance: a bigger area where mobs and redstone keep running.
- Exploration: players heading in different directions load and generate more chunks.
- Plugins and mods: maps, databases, caches and custom systems all add up.
- Entities: big mob farms and piles of dropped items.
Setting the memory
For a Paper server with 4 GB: java -Xms4G -Xmx4G -jar paper.jar --nogui. -Xms is the starting size, -Xmx the maximum. Don't give the server all of the machine's memory; Java and the operating system need some outside the heap.
Will more RAM fix lag?
Only if memory is the problem. A server limited by CPU, chunk generation, slow storage or a heavy plugin won't get faster with more RAM. The server aims for 20 ticks per second, so every tick has 50 ms; if ticks take longer, the game slows down. A profiler such as spark shows what is using the time, and you should measure while people are playing.
A status check (like our server status checker) shows whether the server is reachable, not how much RAM it has left.