Minecraft server: how much RAM, really?
Updated: 18 November 2026 · Guide · Minecraft · Game server
How much RAM a Minecraft server needs is decided mainly by mods and view distance, and only then by the number of players. What we measured: four modpacks with 142 to 266 mods already used 3.2 to 4.2 GB without a single player. How much each player adds we have not measured, and the commonly quoted figure for it isn't measured either, just cited (see below). Calculators that output “RAM per player” are calculating with assumptions.
Measured: modpacks with no players
| Modpack | Mods | Start to “Done” | RAM at idle |
|---|---|---|---|
| SevTech: Ages 3.2.3 | 261 | 256 s | 3.6 GB |
| Project Ozone 3 (PO3-3.4.11F) | 266 | 331 s | 3.8 GB |
| Project Ozone 2: Reloaded v2.4.0 | 171 | 152 s | 3.2 GB |
| Minecraft Time 1.6 | 142 | 373 s | 4.2 GB |
The table shows three things. First: more mods don't automatically mean more memory. Minecraft Time has the fewest mods and needed the most. Second: all four packs are above 3 GB before anyone plays. A server with 4 GB is too tight for packs like these as soon as players load chunks. Third: the first start takes two to six minutes with modpacks. If you restart during that time because “nothing is happening”, you start over.
To be honest about the method: docker stats shows what the whole container occupies, not how much of that the server strictly needs. The values are what the server had actually occupied with a 6 GB limit. How much of it would remain after a garbage collector run we have not measured, so the figures are not a lower bound. For vanilla and Paper without mods we have no published measurement; the rule of thumb from our self-hosting article (2 to 4 GB for a small group, 6 to 8 GB for a medium modpack) is a guideline, not a measurement.
And per player?
minecraft.wiki gives 50 to 100 MB per player, but cites a hosting provider's guide for it and says itself that the requirement is hard to determine because it depends on what players do. Ten players building next to each other load the same chunks; ten players flying off in every direction each load their own. That's why we don't give a per-player figure but recommend: start the server, measure with real players (see below), then adjust.
-Xmx and -Xms: what you allocate
You allocate RAM to a Java server via two start parameters. -Xmx is the upper limit of the heap, -Xms the size Java starts with. According to the Java documentation both are often set to the same value on servers, and PaperMC explicitly recommends it: if -Xms is smaller than -Xmx, allocated memory goes unused.
java -Xms6G -Xmx6G -jar server.jar nogui
What matters is the gap to the memory of the machine or container. Java needs more memory outside the heap. PaperMC advises setting -Xmx and -Xms about 1000 to 1500 MB below the available memory so the server doesn't get killed by the OOM killer. On a VPS with 8 GB that means -Xmx6G rather than -Xmx8G. With NeoForge the values aren't in the start command but in user_jvm_args.txt.
Our start parameter generator produces the full start command with the garbage collector settings recommended by PaperMC (Aikar's flags) to match your memory. That's why the flags aren't repeated here.
Why more RAM doesn't make it faster
The reflex when there's lag is “more RAM”. PaperMC disagrees: beyond a certain point more memory brings no better performance, and 32 GB for a server is money wasted. minecraft.wiki names mobs and elaborate redstone circuits as the main CPU load, and memory doesn't help against those. More RAM only helps if the heap actually fills up and the garbage collector constantly has to clean up. Whether that's the case is something a measurement tells you, not a hunch.
At the same time PaperMC recommends at least 6 to 10 GB for Paper, regardless of player count. That is a recommendation for a smoothly running server with headroom, not a measured minimum requirement.
The biggest lever: view distance
view-distance=8 simulation-distance=6
view-distance (3 to 32, default 10) sets how many chunks the server sends each player in every direction, measured as a radius. The area grows with the square: at 10 it's 21 × 21 = 441 chunks around each player, at 8 only 17 × 17 = 289, a third fewer. minecraft.wiki notes that a large world and a high view distance increase RAM usage. simulation-distance (also 3 to 32, default 10) separately determines how far around the players mobs are actually updated.
Measuring real usage
At the operating system level you only see how much the Java process occupies in total: with top or htop on the VPS, with docker stats for a server in a container. That tells you whether the machine is reaching its limit, but not whether the heap is too small.
docker stats --no-stream top -p $(pgrep -f server.jar)
A look into the heap comes from spark, a profiler for servers, mods and plugins. From Paper 1.21 spark is already built in; on Fabric, Forge and NeoForge you put the .jar in the mods folder. The three most useful commands:
spark health show --memory report with TPS, CPU and JVM memory spark gc garbage collector runs so far spark heapsummary summary of what's in the heap
Measure once with no players and once at peak playing time. If the heap stays well below -Xmx after the cleanup runs, more RAM is wasted. If it sits at the limit permanently and the garbage collector runs pile up, that points to more memory or a smaller view distance.
With us
On our Minecraft servers the memory is fixed per plan. You set the view distance and the active area around the players in the “Game rules” tab of the control panel, each between 3 and 16 chunks. The measurements above come from exactly this control panel, installed as a normal test customer.
- Start parameter generatorStart command with Aikar's flags to match your RAM
- Server lagging despite enough RAM?Finding CPU, chunks and mobs as the cause
- SevTech: Ages serverOne of the four packs measured
- Project Ozone serverProject Ozone 2 and 3, both measured
- Server on your own VPS-Xmx in the systemd service, headroom for the system
- Rent a Minecraft serverFixed RAM per plan, view distance in the control panel
Sources
- PaperMC: Aikar's Flags (memory recommendation, Xms = Xmx, headroom)
- Oracle: the java command (-Xms, -Xmx)
- minecraft.wiki: Server.properties (view-distance, simulation-distance)
- minecraft.wiki: Server/Requirements (RAM per player, origin of the figure)
- NeoForged: Installing a server (user_jvm_args.txt)
- spark: Commands (health, gc, heapsummary)
- spark: Installation (included in Paper from 1.21)