Server Startup Flags Generator
Generate Aikar's optimized JVM startup flags and Windows / Linux launch scripts for Minecraft servers based on available memory, with the required Java version selected automatically.
Usually, allocate 1–2 GB less than the server's total memory to leave room for the system; 4–8 GB is enough for a small server.
Java 26.3 servers require Java 25 (as specified in Mojang's official version manifest).Aikar's flags make garbage collection smoother and reduce lag. The high-memory flags are used automatically when memory is ≥ 12 GB.
Generate Aikar's optimized JVM flags and a startup script based on your server's memory. Note the Java version: 1.17 requires Java 16, 1.18–1.20.4 requires Java 17, and 1.20.5 and later require Java 21.