Cafora Docs
Server Management

Startup Parameters

Configure JVM flags, memory allocation, and startup arguments for your Minecraft server.

Startup parameters control how the Java Virtual Machine (JVM) runs your Minecraft server. Proper configuration is essential for performance.

Accessing Startup Settings

  1. Open the Pterodactyl Panel
  2. Select your server
  3. Go to Settings → Startup

Memory Allocation

Memory is configured with the -Xms (initial) and -Xmx (maximum) flags:

java -Xms2G -Xmx4G -jar server.jar nogui
FlagMeaning
-XmsInitial heap size
-XmxMaximum heap size

Setting -Xms and -Xmx to the same value can reduce garbage collection overhead.

Aikar's Flags (Paper/Purpur/Spigot)

java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=true
-Daikars.new.flags=true -jar server.jar nogui

See JVM and Garbage Collection for detailed explanations.

On this page