Aikar Flags for Paper JVM tuning to reduce lag spikes
If you run a Paper Minecraft server and you get random TPS dips, the villain is often Java garbage collection (GC) plus messy memory allocation. Aikar Flags are a well-known set of JVM startup flags that Paper documents as a recommended baseline to keep performance more consistent and reduce nasty GC spikes.
What are Aikar Flags
Aikar Flags are JVM startup parameters tuned for Minecraft-style workloads (lots of short-lived objects, frequent allocations) and centered around G1GC. Paper’s docs describe them as a set designed to improve Paper server performance, and they provide a ready-to-use recommended startup command.
Official links
Paper docs — Aikar’s flags: https://docs.papermc.io/paper/aikars-flags/
Paper docs — System properties warning: https://docs.papermc.io/paper/reference/system-properties/
Aikar’s original JVM tuning post: https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/
flags.sh generator: https://flags.sh/
Recommended JVM startup flags for Paper
Paper publishes this baseline command (you only change Xms/Xmx and your jar name).
Before you copy-paste: this is meant for Paper. If you’re not sure what a flag does, don’t freestyle random JVM flags—Paper explicitly warns that JVM flags can alter how things behave.








