Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

What really uses memory

A Minecraft server keeps in memory the areas of the world loaded around each player (the "chunks"), the entities in them, and the code of plugins or mods. The memory needed therefore depends on four things:

  • the server software: Vanilla, Paper, Purpur, Fabric, Forge or NeoForge;
  • the mods or plugins installed, by far the biggest factor;
  • the number of players online at the same time, and how spread out they are across the world;
  • the view distance set on the server.

Ten players gathered in one base load far fewer chunks than ten players each off exploring on their own. Every world counts too: the Nether and the End are added to the main world as soon as a player goes there, and a multi-world plugin adds more. A contraption that keeps chunks loaded permanently uses memory even when nobody is nearby.

02

Benchmarks by use

These ballpark figures apply to a well-tuned server; they vary with the mods and the way people play.

  • Vanilla or Paper with friends, around ten players: 4 to 6 GB is enough.
  • Community Paper server, around fifteen players and twenty or so plugins: 8 GB, more beyond 30 players.
  • Light modpack (a few dozen Fabric mods): 6 to 8 GB.
  • Large modpack, Forge or NeoForge, with several hundred mods: 16 GB or more.
  • Server network (a proxy such as Velocity in front of a lobby and game servers): add up the memory of each server; the proxy itself needs little.

For a modpack, its page often states the memory recommended by its authors: that is the best starting point. Add some headroom for players and for the mods you will add along the way.

03

Java: allocated memory and headroom

A Minecraft Java server runs inside a Java virtual machine. Two launch options set its memory: -Xms, the memory reserved at startup, and -Xmx, the ceiling. They are often given the same value, so that Java does not have to grow its reserve mid-game.

This ceiling must not equal all of the machine's memory: Java also uses memory outside its reserve (loaded code, threads, networking). Without headroom, the system may kill the server abruptly.

Do not worry if the memory shown is almost full: Java reserves its memory and keeps it, even when the world only uses part of it. What matters is the memory actually in use after the garbage collector has run (the mechanism that frees unused memory); the spark tool shows it.

The Java version depends on the game version: Java 17 for Minecraft 1.18 to 1.20.4, Java 21 from 1.20.5. With the wrong version, the server refuses to start.

04

More RAM does not mean faster

Beyond what the server needs, extra memory is useless, and a very large allocation can even lengthen garbage collector pauses. A server that runs well on 8 GB will gain nothing from 16 if its slowdowns come from elsewhere.

The real signs of a memory shortage are clear: an OutOfMemoryError in the console, abrupt crashes, or memory that stays full even right after garbage collection. If your server slows down while memory is not full, look at the processor, a demanding plugin or world generation.

05

The processor matters just as much

Minecraft computes most of the world on a single thread. The server aims for 20 "ticks" per second, i.e. no more than 50 milliseconds to compute each tick. When it can no longer keep up, the world slows down: broken blocks reappear, mobs move in jerks, and the console shows "Can't keep up!".

On Paper, the /tps and /mspt commands give these two values. A high-clock processor keeps a server smooth far more reliably than one with many slow cores: that is why our Minecraft servers run on the Ryzen 9 9950X, with a high clock speed on every core.

06

Diagnosing a laggy server

  1. Measure before changing anything: TPS and MSPT, during the slowdown.
  2. Run a profile with spark (plugin or mod): /spark profiler start, wait a few minutes of play, then /spark profiler stop. The report shows which plugin, mod or task is taking the time.
  3. Check memory with /spark health: if it stays full all the time, the server really is short of it, or a plugin is holding on to it without releasing it.
  4. Look for the trigger: a player exploring (chunk generation), a farm, a redstone contraption, a world save.
  5. Tell server lag from player lag apart: if only one player complains while TPS stays at 20, the problem lies with their connection or their computer.
07

Settings that lighten a server

  • Switch to Paper or Purpur rather than the Vanilla server: same gameplay rules, far less computation. Their configuration files also let you limit entities and items on the ground.
  • Reduce the simulation distance (simulation-distance) before the view distance: it is the one that costs the most.
  • Pre-generate the world with a tool such as Chunky, and set a world border: generating new chunks during play is very expensive.
  • Limit entities: animal farms, items on the ground and redstone clocks that run endlessly weigh heavily.
  • On Fabric, optimisation mods such as Lithium (computation) and FerriteCore (memory) lighten the server without changing the game.
  • Restart once a day at a quiet time: a server loaded with plugins starts again with clean memory.
08

Choosing and upgrading your server with CloudFive

Our Minecraft plans start at 8 GB, which leaves headroom for a Vanilla or Paper server with around fifteen players and for most light modpacks. The higher tiers (16, 24 and 32 GB) are built for large modpacks and big communities.

  • Ryzen 9 9950X, DDR5 and NVMe on every tier, in France, with Anti-DDoS Premium included.
  • Vanilla, Paper, Purpur, Fabric, Forge and NeoForge: you choose the loader and version from the client area, and change them whenever you like; a backup is made first. Modpacks and plugins install from Modrinth.
  • Whitelist, operators and server properties are set from the server's page, with clear labels, without editing any file.
  • Automatic backups over a rolling 5 days, restorable in one click and downloadable.
  • Tier changes from the client area, without reinstalling or losing your worlds.

Several servers to run, such as a lobby and a survival server? The Pterobox gives you a memory allowance to split up yourself: see the guide hosting several game servers. To set up the server from A to Z, read creating a Minecraft server.

09

Frequently asked questions

How much RAM for 10 players on Minecraft?

For a Vanilla or Paper server without large mods, 4 to 6 GB is enough for around ten players. With a modpack, plan on 8 GB or more depending on the number of mods.

How much RAM for a modpack?

6 to 8 GB for a light modpack, 16 GB or more for a large Forge or NeoForge modpack with several hundred mods. The modpack's page often states the recommended memory.

My server shows all its RAM in use: is that a problem?

Not necessarily. Java reserves the memory allocated to it and keeps it, even if the world only uses part of it. Check the memory actually in use with spark: that is what tells you whether the server is short of it.

Will adding RAM get rid of the lag?

Only if the server is genuinely short of memory. Most of the time, lag comes from the processor, a plugin or world generation: measure TPS and run a spark profile before changing tier.

Which Java version for a Minecraft server?

Java 17 for Minecraft 1.18 to 1.20.4, Java 21 from version 1.20.5. With a version that is too old, the server refuses to start.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay