Guide
How much RAM does a Minecraft server need?
A small vanilla Minecraft Java server for a handful of friends can run on 2 to 4 GB of allocated heap, and a modded or busy server usually needs more, but published advice for similar groups ranges from 2 GB to 10 GB. The number depends on the server software (vanilla, Paper or Fabric), the mods and plugins, the view distance and what players build. The word "measured" in this page's address is a leftover from the site's plan: nothing here is measured, and every figure is attributed to the publisher who reports it.
Disclosure GameServerBench may earn a commission if you buy through links on this site. No affiliate links are live yet. Commissions do not change what we publish; see our disclosure.
On this page
What do the documentation sources say?
The Minecraft Wiki and the Paper docs give the lowest-commercial-interest guidance, and they disagree because they answer different questions. Neither is Mojang's official minimum; no official Mojang server hardware figure was found.
- Minecraft Wiki (community-written): "For small servers, it is recommended that you have at least 2 GB of RAM available," and larger servers may need 4 GB (setup tutorial, 8 Nov 2026). It gives no per-player figure; its closest example is that
-Xmx2G"is more than enough for a home server with 5 players on default simulation distance." It also says Minecraft servers "mostly utilize a single core." - PaperMC docs (Paper is the server software they document): "We recommend using at least 6-10GB, no matter how few players!" and that 32 GB "will only waste your money with minimal returns" (Aikar's flags, 8 Nov 2026). The page presents these as flag recommendations for G1 garbage collection, not a hardware minimum, and it does not state its scope. Paper's own start-script example uses 4 GB (getting started).
Together they show a real gap: 2 GB is "more than enough" for five players on the wiki's example, while Paper recommends at least 6 GB whatever the player count. The sources do not reconcile it. A plausible reading is that the Paper figure is tuned for its recommended G1 flags and busier servers, but neither page says so.
What do hosts and guides publish?
Hosts publish the widest range, and all of these publishers sell hosting. This table shows each figure as reported on 8 November 2026.
| Publisher | Setup | Figure | Date |
|---|---|---|---|
| Host Havoc | Vanilla, 5-10 players | 2 GB | Updated 15 Sep 2026 |
| Host Havoc | Vanilla, 10-20 players | 3 GB | Same |
| Host Havoc | Modded, 15-25 players | 6 GB | Same |
| DatHost | Vanilla, 5-10 players | 3-4 GB minimum, 4-6 GB recommended | 24 Feb 2026 |
| DatHost | Vanilla, 10-20 players | 4-6 GB minimum, 6-8 GB recommended | Same |
| DatHost | Modded, about 10 players, tech/magic (50-80 mods) | 8-10 GB | Same |
| Sparked Host | Vanilla, 10 players | 4 GB | Undated |
| Sparked Host | Fabric, 5 players, 30 mods | 5 GB | Undated |
| Sparked Host | Forge/NeoForge, 5 players, about 50 mods | 7 GB | Undated |
Host Havoc also gives a formula: 1 GB base, plus 0.25 GB per player, 0.5 GB per 10 plugins and 1 GB per 20 mods, with an example of 20 players, 40 mods and 20 plugins totalling 9 GB. Its own table lists 6 GB for 15 to 25 modded players, so its two methods give different answers for similar servers (the inputs are not identical, since the formula counts plugins). None of these publishers states a test method, hardware or version behind its numbers. BisectHosting's allocation guide (23 Jan 2025) gives no player-based figures and advises changing the setting only when necessary.
For one vanilla group of about 10 players, the range across these sources is therefore 2 GB (the wiki's five-player example), 4-6 GB (DatHost's recommendation for 5-10 players) and 6-10 GB (Paper). Treat the spread as the finding; no single number is settled.
Does the server software change how much RAM I need?
Software changes what you can fit, but no source here gives a measured vanilla-versus-Paper-versus-Fabric memory comparison.
- Vanilla: the server jar from Mojang. The wiki lists Java 25 for 26.1 and later, Java 21 for 1.20.5 and later.
- Paper: a server that bundles spark since 1.21 and requires at least Java 25 for current versions (per the Paper docs). Its docs say much of the load comes from the single-threaded tick loop. No Paper page read states that it uses less or more memory than vanilla.
- Fabric: a mod loader. Memory use depends mostly on the mods you install, which is why Sparked Host's example lists 5 GB for 30 mods. Fabric's own player documentation checked on 8 November 2026 had no server memory guidance.
Plugins on Paper and mods on Fabric or Forge add memory, which is why modded figures run higher. For a heavy pack, see the worked example in ATM10 server RAM.
What is the difference between allocated heap and system RAM?
The allocated heap is the memory Java may use for game objects, set with -Xmx; system RAM is everything the machine or plan has. The Minecraft Wiki describes -Xmx as how much memory the server is allowed to use. The Paper docs advise leaving 1,000 to 1,500 MB between the heap and the host's RAM, with an example of about 6,500 MB on an 8 GB host, because Java and the operating system need memory beyond the heap. DatHost gives a similar rule: total RAM minus 0.5 to 1 GB for Minecraft.
So a plan sold as "8 GB" supports a heap of roughly 6.5 to 7.5 GB under those two rules. Paper's troubleshooting page adds that it is normal for Java to use the RAM it is given, so a full memory bar is not itself a problem.
Why is TPS low when I have spare RAM?
If TPS stays below 20 while memory is free, the limit usually points at the CPU's speed on one thread, not RAM. Ticks must finish in 50 ms to hold 20 TPS (spark docs; Minecraft Wiki). The Paper docs say the tick loop "uses a single thread" and recommend a CPU with high single-threaded performance; the wiki says servers mostly use a single core. More heap gives that thread no extra speed. RAM only matters if the heap is too small, which shows up as frequent long garbage collection or out-of-memory errors. MSPT and TPS explained covers how to tell the cases apart.
How do I size RAM from a spark reading?
Run the server with a realistic player group, read memory after garbage collection, and add headroom. That gives a number grounded in your own server rather than a table. The steps are this site's suggested method built from the sources cited, not a published standard.
- Install or use spark (bundled with Paper since 1.21, according to the Paper profiling docs).
- During a busy session, run
/spark healthfor TPS, CPU, memory and disk, and/spark gcfor garbage collection history (spark commands). - Note the heap in use right after collections drop it, the lowest points during busy play. That is roughly what the game holds.
- Set
-Xmxto that value plus headroom. DatHost suggests keeping 30 to 40 percent free for stability. As arithmetic: heap = in-use after collection / (1 - headroom fraction). - Add 1,000 to 1,500 MB for the host or plan size, per Paper.
- Check TPS. If it is below 20 and memory is comfortable, stop adding RAM and look at the CPU, view distance and the profiler.
Repeat after adding mods or players. The server RAM calculator applies this arithmetic to your inputs, and how to benchmark your game server covers repeatable testing. For garbage collector flags, see Java flags for modded servers.
What would GameServerBench measure?
The planned protocol would run vanilla, Paper and Fabric servers with 5, 20 and 50 simulated players and log heap after collection and MSPT from spark. It has not been run, so no figures are given. More guides are listed in the guides index.
Sources
- Tutorial: Setting up a Java Edition server - Minecraft Wiki
- server.properties - Minecraft Wiki
- Tick - Minecraft Wiki
- Getting started - PaperMC docs
- Aikar's flags - PaperMC docs
- Basic troubleshooting - PaperMC docs
- Profiling - PaperMC docs
- spark command usage
- TPS and MSPT - spark docs
- Minecraft server RAM requirements - Host Havoc
- How Much RAM for a Minecraft Server? 2026 Guide - DatHost
- Minecraft RAM calculator - Sparked Host
- How to allocate more RAM - BisectHosting