ServerBuddy
JVM & Aikar's flags markerJVM & Aikar's flags

Minecraft Startup Flags Generator (Aikar's & ZGC)

Pick your server software, RAM size and garbage collector to build a clean Java launch command or auto-restarting start.sh / start.bat script. Aikar's flags switch automatically to 12 GB+ tuning when your heap reaches 12 GB.

Minecraft Startup Flags Generator tool icon
Minecraft Server RAM CalculatorUnsure how much heap to assign? Estimate RAM from players, plugins, mods and view distance first.Minecraft server.properties GeneratorTune view-distance, simulation-distance and safe public defaults alongside your JVM flags.

Generate JVM startup flags

Configure heap size, server software and garbage collector to generate a ready launch command and startup script.

One-line launch command

Startup script (start.sh)

  • Using standard Aikar's G1GC tuning (8M regions, 30–40% young generation) for heaps under 12 GB.
  • Leave 1–2 GB of system RAM free outside -Xmx for the operating system, native buffers and Docker/container overhead.
Use case markerUse case

Why use this tool

Each utility supports a practical task around finding, preparing or presenting a public Minecraft server.

  • Generates PaperMC's Aikar's G1GC flags with automatic under-12 GB and 12 GB+ region tuning.
  • Supports Java 21+ Generational ZGC and PaperMC's lightweight Velocity proxy flags.
  • Exports a copyable one-liner or downloadable Linux/macOS start.sh and Windows start.bat scripts.
Good to know markerGood to know

Startup flags FAQ

Concise answers for players and server owners using this ServerBuddy utility.

When should I use Aikar's flags vs Generational ZGC?

Aikar's G1GC flags are the battle-tested default for Paper, Purpur, Fabric and Forge servers on Java 17 and Java 21. Generational ZGC (Java 21+) is worth testing on larger heaps if you have extra CPU and RAM headroom and want minimal GC pauses.

Why do Aikar's flags change at 12 GB of RAM?

At 12 GB and above, PaperMC recommends larger G1 heap regions (16M instead of 8M) and higher young-generation percentages (40–50%) so G1GC cleans short-lived Minecraft chunk and entity allocations smoothly.

Should I allocate all of my server's RAM to -Xmx?

No. Always leave at least 1–2 GB of system memory outside -Xmx for the operating system, JVM metaspace, Netty buffers and container overhead, or the OS may kill the Java process.

Should Velocity proxies use Aikar's flags?

No. Proxies like Velocity need much smaller heaps (512 MB to 2 GB) and a leaner G1GC set with 4M regions. Choose Velocity in the software selector to generate the right proxy command.