Skip to content

Instantly share code, notes, and snippets.

@DaMatrix
Last active February 4, 2018 12:33
Show Gist options
  • Select an option

  • Save DaMatrix/726a6e31c6f806c60a5225b48982b9e8 to your computer and use it in GitHub Desktop.

Select an option

Save DaMatrix/726a6e31c6f806c60a5225b48982b9e8 to your computer and use it in GitHub Desktop.
> 10GB minecraft server
java -Xmx13G -Xms13G -XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:MaxGCPauseMillis=50 -XX:G1NewSizePercent=40 -XX:G1HeapRegionSize=32M -XX:G1MaxNewSizePercent=60 -XX:InitiatingHeapOccupancyPercent=25 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+UseLargePagesInMetaspace -jar forge-1.12.2-14.23.1.2556-universal.jar nogui
java \
-Xmx13G \
-Xms13G \
-XX:+UseG1GC \
-Dsun.rmi.dgc.server.gcInterval=2147483646 \
-XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC \
-XX:TargetSurvivorRatio=90 \
-XX:MaxGCPauseMillis=50 \
-XX:G1NewSizePercent=40 \
-XX:G1HeapRegionSize=32M \
-XX:G1MaxNewSizePercent=60 \
-XX:InitiatingHeapOccupancyPercent=25 \
-XX:G1MixedGCLiveThresholdPercent=50 \
-XX:+AggressiveOpts \
-XX:+AlwaysPreTouch \
-XX:+UseLargePagesInMetaspace \
-jar forge-1.12.2-14.23.1.2556-universal.jar nogui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment