minecraft: lower server's RAM to 4GB

This commit is contained in:
Alexandre Cavalheiro 2024-09-01 17:35:50 -03:00
parent 4a8b5a1bff
commit 79d396ddfd
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -24,7 +24,7 @@ in
package = pkgs.fabricServers.fabric-1_20_1.override { loaderVersion = "0.15.11"; };
autoStart = true;
jvmOpts = "-Xms512M -Xmx6016M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=4M -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50";
jvmOpts = "-Xms512M -Xmx4096M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=4M -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50";
serverProperties = {
allow-flight = true;