How much RAM does a Minecraft server need?

Last updated

A Minecraft server for a few friends runs on 1 to 2 GB of RAM. Plugins and more players need 2 to 4 GB, and most modpacks 4 to 8 GB or more. On Minefort the RAM comes with your plan: you pick a plan instead of setting -Xmx yourself.

How much RAM to start with

Your server RAM Minefort plan
Vanilla or Paper, you and a few friends 1–2 GB Free (1 GB) or Cottage (2 GB)
Paper with plugins, an active group 2–4 GB Cottage (2 GB) or House (4 GB)
A modpack of up to about 60 mods About 4 GB House (4 GB)
A bigger modpack, a few hundred mods 6–8 GB Mansion (8 GB)
The largest modpacks, or many players at once 8–12 GB Mansion (8 GB) or Fort (12 GB)

These are starting points, not promises. Two servers with the same plugins can need very different amounts, depending on how many people play at once and how much of the world they load. Start with the row that fits, watch how the server runs, and move up when you see the signs below.

What uses RAM

  • Players. Each player keeps the chunks around them loaded. Players spread out across the world load more chunks than players who stay together.
  • View distance and simulation distance. These set how many chunks stay loaded around each player. Lowering them is the quickest way to save memory. You find View distance and Simulation distance on the Configuration tab under World.
  • Plugins. Most plugins need little memory. Map, world-editing and big minigame plugins need more.
  • Mods and modpacks. Every mod adds blocks, items and code that stay in memory. The more mods, the more RAM, which is why modpacks need the most.
  • Entities. Big farms, lots of animals and dropped items all take memory, and slow the server down too.
  • The Minecraft version. Newer versions generally use more memory than old ones.

Signs you need more RAM

  • The server lags more and more as players join or explore, and recovers when they leave.
  • The server crashes or stops by itself, often while players explore new parts of the world.
  • The Console tab shows java.lang.OutOfMemoryError or “Java heap space”. Java ran out of memory.
  • A modpack never finishes starting. Big packs need their memory just to load.

The Metrics page, in the server’s More actions menu, shows memory use against your plan. Java holds on to memory it has used, so a high memory line on its own is normal. Lag and errors are the signs that count.

Not all lag is memory. Minecraft does most of its work on one CPU thread, so redstone machines, big farms and crowds of mobs can lag a server that has memory to spare. If the lag stays after an upgrade, lower the view distance and look at what players have built.

How RAM works on Minefort

You don’t set -Xmx or any start flags yourself. Minefort starts Java with your plan’s memory as its heap, and gives Java the extra memory it needs for itself on top, so the full amount goes to the game.

Plan RAM
Free 1 GB
Cottage 2 GB
House 4 GB
Mansion 8 GB
Fort 12 GB

Prices are on the pricing page. Each plan also sets how many players can be online at once.

When you create a modpack server, Minefort suggests a plan with enough memory for that pack. See How to make a Minecraft modpack server.

Give your server more RAM

  1. Open your server in the dashboard.
  2. Go to the Plan tab.
  3. Under Available plans, click the button on the plan you want, for example Choose House, and pay.
  4. If the server was running, it keeps its old memory until it restarts. The Plan tab says so: click Restart now.

If you already pay for a plan, moving to a bigger one only charges the difference for the rest of the billing period. Your world, plugins and settings stay as they are.

Still stuck? Ask on Discord

The Minefort team and community are there. Tell us what you tried and someone will point you the right way.

Join the Discord