Halloween Sale 25% off your first month with code Fin dans 06j12h52min27s


 
 
 
 
Server tools

Startup Script & JVM Flags

Aikar's flags and start scripts, up to 32 GB.

GB
Max 32 GB: a Minecraft server doesn't run well with more.
JVM flags
Platform
4GB
Max heap (-Xmx)
6GB
RAM the machine needs
21
Java to install
start.sh
One-line command
Or: user_jvm_args.txt
Which Java version do I need?
MinecraftJavaNotes
1.8 – 1.11.2Java 8Forge for these versions only runs on Java 8.
1.12 – 1.16.5Java 8 or 11Paper and Spigot run on 11. Forge for 1.12.2 needs exactly Java 8.
1.17 – 1.17.1Java 16Java 17 works too.
1.18 – 1.20.4Java 17Newer Java usually works for vanilla and Paper. Older Forge may not.
1.20.5 – 1.21.11Java 21
26.1 and newerJava 25Velocity also needs 25.
If Java is too old, the server stops with "UnsupportedClassVersionError".

Frequently asked questions

How much RAM should I give my Minecraft server?
For a small vanilla or Paper server, 4 to 6 GB is enough. Modpacks usually need 6 to 10 GB.
Do Aikar's flags work on Java 21 and 25?
Yes. Every flag in the set still works on Java 8 through 26.
Java says "Unrecognized VM option". What now?
One of your -XX flags is misspelled or was removed from your Java version. Generate a fresh command above.
Need a Minecraft server?
Unlimited RAM and player slots, DDoS protection and instant setup, from $9.99/mo.
Start your server
Minecraft + 59 autres jeux · Une seule offre

Lance ton serveur Minecraft en 60 secondes

Slots et RAM illimités Modpacks et plugins en un clic Support par des experts 24h/24 et 7j/7
Lancer mon serveur À partir de $9.99/mois  ·  Garantie satisfait ou remboursé pendant 24 heures
Minecraft server hosting