diff --git a/roles/server/minecraft/templates/launch.sh b/roles/server/minecraft/templates/launch.sh index 0d3bae3..b0e714b 100644 --- a/roles/server/minecraft/templates/launch.sh +++ b/roles/server/minecraft/templates/launch.sh @@ -3,6 +3,16 @@ -server \ -Xms{{ minecraft_start_ram | quote }} \ -Xmx{{ minecraft_max_ram | quote }} \ + -XX:+UseG1GC \ + -XX:+UnlockExperimentalVMOptions \ + -XX:MaxGCPauseMillis=100 \ + -XX:+DisableExplicitGC \ + -XX:TargetSurvivorRatio=90 \ + -XX:G1NewSizePercent=50 \ + -XX:G1MaxNewSizePercent=80 \ + -XX:G1MixedGCLiveThresholdPercent=35 \ + -XX:+AlwaysPreTouch \ + -XX:+ParallelRefProcEnabled \ -jar \ {{ installation_directory | quote }}/server.jar \ nogui