From 79d396ddfd272dcca55aec9fffa68bae6ee22ba3 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Sun, 1 Sep 2024 17:35:50 -0300 Subject: [PATCH] minecraft: lower server's RAM to 4GB --- services/minecraft/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/minecraft/default.nix b/services/minecraft/default.nix index eccb905..b404e2c 100644 --- a/services/minecraft/default.nix +++ b/services/minecraft/default.nix @@ -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;