Skip to content
Play Your Way logoPlay Your Way
section.tools.minecraft.aikars

Aikar's flags generator

Tuned JVM startup arguments for Minecraft servers — picks the right G1GC settings for your heap size and adjusts them above the 12 GB threshold. Paste the result into your panel's startup variables.

4 GB
18162432 GB
Server type

The flags themselves are the same — only the trailing -jar filename changes per loader.

Where to paste this
  1. Open your server in the PlayYourWay panel.
  2. Go to Startup → Startup Command.
  3. Replace the existing command with the block above. Keep your egg's variables (e.g. {{SERVER_JARFILE}}) if your panel uses them.
  4. Restart the server. Watch the console — if you see using.aikars.flags=https://mcflags.emc.gs in the boot log, the flags loaded correctly.

These flags target Minecraft's allocation pattern specifically. They generally outperform default G1GC settings for any Java-based server (Paper, Purpur, Fabric, Forge, NeoForge). For ZGC or Shenandoah experimentation, this isn't the tuning you want — see PaperMC's GC guide.