RAM allocation and start flags

How much of your RAM the server actually uses, why "more Xmx" can hurt, and the Aikar flags explained.

1 min readDiese Anleitung auf Deutsch lesen

On this page 3
  1. What the server gets
  2. Can I change the start command?
  3. More RAM is not always faster

What the server gets

Your plan's RAM is the container limit, and it counts everything your server holds: RAM and swap together, as one number. Our start command uses -XX:MaxRAMPercentage=85 on every Minecraft server, so the Java heap (worlds, players, plugins) may grow to 85 % of it. The rest is room for Java itself (threads, network, loaded code). You do not need to set anything. If the server needs more than the plan in total, it stops with "Out of memory: true" in the console and restarts on its own. The server management then shows a red notice that the RAM was full, with an Upgrade server button. That is when it is time for more RAM.

Can I change the start command?

The command itself is set by the server type and is not editable in the server management. That keeps the memory settings consistent with what you bought. What you can change are the variables under Startup (version, jar name, loader version). If you want tuned garbage-collector settings ("Aikar's flags") on a busy Paper server, open a ticket and we set them for your server; they help most above 20 players.

More RAM is not always faster

A server that has more heap than it needs spends longer in garbage collection pauses. 4 GB for 10 players on Paper is generous; 16 GB for the same server is not better, sometimes worse. Modpacks are the exception: they genuinely need it.

Still stuck?

Kowalski, the assistant in your dashboard, reads your server's log and fixes most things on request. For everything else there is the ticket system.