Update Minecraft server package version and simplify JVM options

This commit is contained in:
Root User 2026-04-06 00:33:34 +03:00
parent 41f11ae351
commit 7364904eb3
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -75,27 +75,12 @@ in {
autoStart = true; autoStart = true;
restart = "always"; restart = "always";
package = pkgs.neoforgeServers.neoforge; package = pkgs.neoforgeServers.neoforge-1_21_1-21_1_224;
jvmOpts = lib.concatStringsSep " " [ jvmOpts = lib.concatStringsSep " " [
"-Xms28G" "-Xms28G"
# Use 120GB of RA # Use 120GB of RA
"-Xmx32G" "-Xmx32G"
"-XX:+UseG1GC"
"-XX:+ParallelRefProcEnabled"
"-XX:MaxGCPauseMillis=80"
"-XX:+UnlockExperimentalVMOptions"
"-XX:+DisableExplicitGC"
"-XX:+AlwaysPreTouch"
"-XX:G1NewSizePercent=30"
"-XX:G1MaxNewSizePercent=50"
"-XX:G1HeapRegionSize=16M"
"-XX:G1ReservePercent=20"
"-XX:G1MixedGCCountTarget=4"
"-XX:InitiatingHeapOccupancyPercent=15"
"-XX:G1MixedGCLiveThresholdPercent=90"
"-XX:G1RSetUpdatingPauseTimePercent=5"
]; ];
serverProperties = { serverProperties = {