How much RAM does a Minecraft server need

Getting started · updated 28 November 2026

For survival with a few friends on Paper, 3-4 GB of RAM is enough. Modpacks need more, usually 6-10 GB. Below you will find a table and examples, followed by the signs that the server is short on memory.

RAM is the memory where the server keeps the loaded world, players, mobs and plugins. Too little RAM means lag or the server shutting down. Too much means paying for memory the server will not use.

Table: how much RAM for which server

Values for Paper or Purpur and a normal view-distance (8-10):

Server typePlayersRAM
Survival with friendsup to 52-3 GB
Survival with friends5-103-4 GB
Survival with plugins10-304-8 GB
Bigger server30-808-12 GB
A few to a dozen mods (Fabric)up to 104-6 GB
Medium modpack (e.g. Cobblemon, Create)up to 106-8 GB
Large modpack (e.g. All the Mods)up to 108-12 GB

On Vanilla add some headroom, because it uses memory less efficiently than Paper. On a modpack add about 1 GB for every few extra players.

Examples

Five friends, survival, a few plugins (EssentialsX, LuckPerms, CoreProtect). 3 GB is enough. If you plan to fly around new terrain with an elytra a lot, take 4 GB or pregenerate the world.

A server for a class or a community, 20-30 players. Start with 6 GB. With many farms and a world map plugin, move to 8 GB.

Friends on Cobblemon or Create. Start with 6 GB. With a dozen players or big Create factories: 8 GB.

All the Mods 10. At least 8 GB, better 10-12 GB. With less the server often does not even finish starting.

What uses the most memory

  • mods and modpacks, even when nobody is playing,
  • a high view-distance, that is how many chunks each player loads,
  • players far away from each other, because each one loads a different part of the world,
  • generating new terrain, especially flying with an elytra,
  • world map plugins, such as Dynmap while rendering.

How to check how much RAM the server uses

The current usage is shown in the panel console, in the Memory tile. Look at it in the evening, when most people are playing.

You can check it in more detail with the Spark plugin:

spark health

It shows memory usage, TPS and CPU load. More about Spark in the guide on fixing lag.

Why Java takes almost all the RAM

A Minecraft server runs on Java. Java takes memory in advance and frees it only when it has to. That is why the graph often shows 80-95% even on a quiet server. This is normal. It only becomes a problem when lag grows or the server shuts down.

Signs of too little RAM

  • the server shuts down with a java.lang.OutOfMemoryError error (what to do),
  • every few seconds everything freezes for a moment and then continues,
  • lag grows with every new player, even though the CPU is not under heavy load,
  • the panel console shows a warning about more than 90% memory usage while the server is lagging.

Before you buy more RAM, go through the server optimization guide. It often helps more than extra gigabytes.

Frequently asked questions

The server shows 95% RAM usage but does not lag. Is that a problem?

No. Over time Java takes almost all of the allocated RAM and gives it back when it needs to. The problems are TPS drops and the server shutting down, not the number itself.

Does more RAM always mean a faster server?

No. When there is enough memory, extra gigabytes will not speed anything up. Lag with enough RAM is usually the CPU: too many mobs, farms or a heavy plugin.

Can I add RAM later?

Yes. You can change the plan in the Settings tab without losing your world (how).