1. Reserve 1–1.5 GB Headroom for Linux OS
On an 8 GB server, set -Xms7G -Xmx7G (not 8G). Giving 100% of container memory to Java causes Linux OOM-Killer to crash the entire server during chunk generation.
Aikar's Optimized G1GC Startup Flags (8 GB Plan)
java -Xms7G -Xmx7G -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 -jar server.jar nogui
2. Tune server.properties for 20 TPS Stability
Drop simulation-distance to 6 while keeping view-distance at 8–10. Players still see far horizons, while server CPU tick load drops by nearly 40%.
server.properties
view-distance=9 simulation-distance=6 max-tick-time=60000 network-compression-threshold=256 sync-chunk-writes=false
3. Pre-Generate Chunks Before Players Join
Install the Chunky mod/plugin and pre-generate a 5,000-block radius around spawn before inviting your group. Live chunk generation is the #1 TPS killer on modded Minecraft.
In-Game / Console Commands
/chunky radius 4000 /chunky start
