Hosting Guides

How Much RAM Does a Minecraft Server Need?

Most small Minecraft servers need 2–4 GB of RAM: 2 GB for a few friends on vanilla or Paper, 4 GB for 5–10 players. Modpacks need 6–12 GB or more. Past that, CPU speed decides performance.

Updated 7 min read

Short answer: a vanilla or Paper server for 2–5 players runs well on 2 GB of RAM, and 5–10 players or a server with a handful of plugins on 4 GB. Modded servers need more: 4–6 GB for a light Fabric pack, 6–8 GB for a typical modpack, and 10–12 GB or more for large "kitchen sink" packs. Past that point more RAM doesn't make a server faster: CPU speed does.

RAM by server type and player count

These are starting points for Minecraft Java Edition, with default view and simulation distance and a normal survival world.

Server 1–5 players 5–10 players 10–20 players 20–40 players
Vanilla, or Paper with few plugins 2 GB 3–4 GB 4–6 GB 8–12 GB
Paper with 20–50 plugins 3–4 GB 4–6 GB 6–8 GB 8–12 GB
Light modpack (up to ~50 mods) 4 GB 4–6 GB 6–8 GB 10–12 GB
Typical modpack (50–150 mods) 6 GB 6–8 GB 8–10 GB 12–16 GB
Large modpack (200+ mods) 8–10 GB 10–12 GB 12–16 GB 16 GB+
Bedrock Dedicated Server 1–2 GB 2 GB 2–4 GB 4 GB

Beyond about 40 players, large servers split players across several servers behind a proxy instead of adding more memory to one: see How to Set Up a Velocity Server Network.

Treat the table as a place to start. Watch real memory use for a week, then adjust. A modpack's page often lists a recommended server RAM; when it does, use that. For packs, see also How Much RAM Does a Modded Minecraft Server Need?

Bedrock Dedicated Server is written in C++, not Java, which is why it needs so much less.

What uses a Minecraft server's RAM?

A Java server keeps everything it's currently simulating in memory:

  • Loaded chunks. Each player keeps the area around them loaded. Ten players exploring in ten directions load far more than ten players in one base.
  • Entities and block entities. Mobs, item frames, dropped items, chests, hoppers and furnaces. Large mob farms and storage rooms are common causes of high memory use.
  • Plugins and mods. Mods that add blocks, dimensions and world generation use the most.
  • Headroom for Java. The garbage collector needs spare memory to clean up without pausing the game. A server sitting at 95% of its limit spends a lot of time collecting.

That's why player count is only a rough guide, and why the same modpack can need 6 GB on one server and 10 GB on another.

Is more RAM always better?

No. RAM is a threshold, not a speed. Once a server has enough to hold its world, players and mods with some headroom, extra memory sits unused. What decides whether it runs smoothly is:

  • CPU single-thread speed. Minecraft runs each world's game loop (its "tick") on one main thread, so a fast core matters far more than many cores. See Minecraft Server CPU: What Actually Matters.
  • Server software and settings. Paper, performance mods on Fabric, and a sensible simulation-distance make a bigger difference than another 4 GB.
  • What players build. One badly designed mob farm or hopper chain can slow any server.
  • Storage. Slow disks make chunk loading and saving stutter.

Giving a small server far more memory than it uses doesn't make it faster, and can make garbage-collection pauses longer. Paying for 16 GB for a five-player vanilla server is wasted money.

Out of memory, or out of CPU?

Both make the server lag, but the fixes are different. Check before you upgrade.

What you see Memory problem CPU problem
Memory use Sits near the limit, climbing back after every drop Well below the limit
CPU use Normal, with spikes during garbage collection High whenever players are on
TPS (ticks per second) Mostly 20, with regular sharp drops Steadily below 20
Lag pattern Freezes every few seconds or minutes, whatever players are doing Worse near farms, redstone, or when exploring new land
Logs OutOfMemoryError, Java heap space, long GC pauses "Can't keep up! Is the server overloaded?"
Crashes Yes, eventually Rarely; it just runs slowly

How to check

  1. Watch the memory and CPU graphs while players are online. On Beacon they're on Console.
  2. Install spark (from Package Manager on Beacon) and run spark health in the console. It shows TPS, MSPT (milliseconds per tick: under 50 is healthy), CPU and memory.
  3. Run spark gc to see how often garbage collection runs and how long it pauses.
  4. If TPS is low and memory is fine, run a profile to see what's taking the time: see How to Find Lag With the spark Profiler.

More RAM helps when memory sits at the limit, the log shows OutOfMemoryError, or garbage-collection pauses keep growing. More RAM won't help when memory has room to spare. See Why Is My Minecraft Server Lagging? for the full checklist, or How to Fix Out of Memory Errors.

How to use less RAM

  • Run Paper (or Purpur) instead of vanilla. It's a drop-in replacement with large performance improvements. On Fabric, add FerriteCore and Lithium.
  • Lower simulation-distance and view-distance. Both default to 10 chunks. A simulation distance of 6–8 cuts load noticeably while players still see far.
  • Pre-generate the world. Generating new chunks is expensive; Chunky can generate the map before players explore it.
  • Limit entities. Cap mob farms and clear dropped items regularly.
  • Remove plugins and mods nobody uses.

Setting the memory when you host it yourself

On your own machine you choose the memory with Java flags:

java -Xms4G -Xmx4G -jar server.jar nogui

Set -Xms and -Xmx to the same value, and leave at least 1–2 GB for your operating system. On Beacon you don't set these: your plan sets the server's memory.

Which Beacon plan fits?

Beacon's Minecraft plans are sized by RAM, run on AMD Ryzen 9 7950X3D processors, and every plan includes NVMe storage, backups and DDoS protection:

Your server Suggested plan
Bedrock, or 1–2 players on vanilla Dirt (1 GB) or Stone (2 GB)
A few friends on vanilla or Paper Stone (2 GB)
5–10 players, or Paper with plugins Copper (4 GB) or Gold (6 GB)
A light or typical modpack Gold (6 GB) to Amethyst (10 GB)
A large modpack Redstone (12 GB) to Netherite (16 GB)
A large community server Lapis (20 GB) and above

You can upgrade or downgrade at any time from Service & billing without losing your world, so it's fine to start small. See every plan's specs and current price on the facts page, or compare plans in the store.

Still stuck?

Ask the community on Discord, or open a ticket and we'll reply within 4 hours on business days.