The Minecraft Wiki puts a vanilla Java server on a new world with default settings at 1 GB for 1 to 4 players, 2 GB for 5 to 10 and 4 GB for more than 10, and says a large world with redstone machinery and grinders can more than double that. A modpack needs what the pack itself asks for, whatever the number of players. PlayNHost Minecraft plans run from 1 GB to 32 GB.
There is no single right amount of RAM for a Minecraft server. It depends on how many players join, how far they can see, what the world holds and what you add to it. Published guidance gives a starting range, and your own server's RAM graph, read while players are on, is the number that counts.
Want a number to start from? The free Minecraft RAM calculator turns your player count, server type and world into a starting amount and shows its sources.
What the published guidance says
- Minecraft Wiki, Server/Requirements: at least 1 GB for the server to run. For a small LAN party server on default settings and a new world: 1 GB for 1 to 4 players, 2 GB for 5 to 10, 4 GB for more than 10. A player takes about 50 to 100 MB, and the server often needs much more per player. A large world with redstone machinery and grinders "can easily more than double the requirements".
- Minecraft Wiki, Setting up a Java Edition server: at least 2 GB for small servers and possibly 4 GB for larger ones, scaled up with your settings.
- PaperMC, Aikar's flags: recommends at least 6 to 10 GB for its tuned memory flags, no matter how few players, and advises leaving about 1000 to 1500 MB below the machine's limit. That figure belongs to that set of flags, not to every Minecraft server.
The numbers differ because they answer different questions. Use them as a range, then check your own server. The sources agree on what pushes memory up: more players, a larger view or simulation distance, a busy world, and what you add. Mods and plugins have their own needs, and large modpacks need far more than a plain server.
How much RAM for a modded Minecraft server with 5 friends?
With mods, the pack decides, not the number of friends: mods load when the server starts, whether anyone is online or not. Use the amount the pack's own page or launcher gives, when it gives one; many packs give none. When you install a modpack from the panel and it needs more memory than your plan has, the panel shows This modpack wants more memory with what the pack needs. For 5 friends on a plain server without mods, the Minecraft Wiki's figure is 2 GB.
How the panel uses your plan's memory
Java needs memory for the game, called the heap, and some more around it. The panel sizes the heap for your plan by itself:
- From 2 GB up, the heap is your plan's memory minus what Java needs outside it, so a full heap still fits in the plan.
- Below 2 GB, the heap is 85 percent of the plan's memory.
Your server also starts with PaperMC's recommended memory flags, sized to your plan. The memory flags such as -Xmx cannot be set under Custom parameters, because the panel sets them. The exact line your server starts with is under Settings, Launch Details, Start command.
On smaller plans, the Performance for your plan card under Settings, Server Properties (Java) also sets View distance and Simulation distance to values that fit. See How to reduce lag on your Minecraft server.
Check your own server
The best measure is the Usage card on Overview, read while players are online. An empty server always looks small.
- Open your server in the panel. On Overview, open the RAM tab of Usage.
- Choose Live (30 minutes), Past 6 hours or Past day.
- Look at your busiest time, with the usual number of players on, against your plan's limit shown beside it.

How to read it
- High memory on its own is not a problem. A graph that climbs and drops back is a server at work. What counts are the signs in the next point.
- Memory at the limit together with crashes is the problem. The signs:
OutOfMemoryErrorin the Console, a server that stops by itself while players are on, or the This server ran out of memory card on Overview. See Your Minecraft server ran out of memory. - Lag with memory to spare has another cause. Look at the Server health card: How to check your Minecraft server health with TPS and the spark profile.
Check again after anything big changes: a new plugin or mod, more players, a new world, or a higher view distance.
Does more RAM fix Minecraft lag?
Usually not. Minecraft runs 20 ticks a second, one every 50 ms, and the server keeps 20 TPS only while each tick takes no more than 50 ms. When ticks take longer, the game slows down for everyone, and that is mostly the CPU and what the world asks of it: farms, mobs, redstone, plugins and mods. The Minecraft Wiki asks for a CPU with good single-core performance for that reason, and PaperMC says more memory does not mean better performance above a certain point. A bigger plan helps when the server runs out of memory, which the signs above show.
The two memory flags you read about are -Xmx, the most memory Java may use for the game (the heap), and -Xms, the size the heap starts at. The panel sets them for your plan, as described above, so there is nothing to change.
Use less memory
- Lower View distance and Simulation distance in Settings, Server Properties (Java): How to change view distance and simulation distance on your Minecraft server.
- Remove plugins or mods you do not use.
- Cut back farms and machines that run all the time.
- Profile with Profile 60 s to find the heaviest plugin or mod.
Where the panel tells you about memory
- This server ran out of memory on Overview, when the system stopped your server at its plan's memory in the last 7 days. Its Add more memory button opens My plan.
- This modpack wants more memory, when a modpack you install needs at least more memory than your plan has. It shows what the pack needs at least and what it recommends: from the pack's own settings when it states them, otherwise from how many mods it has. See How to install a modpack on your Minecraft server.
Bedrock servers have their own needs: How to run a Minecraft Bedrock server.



