Nix configurations for my homelab
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add JVM argument optimizations to harpy express minecraft server

yemou 68483e70 7ea1db13

+11 -6
+11 -6
modules/services/minecraft/harpy-express.nix
··· 1 - { pkgs, ... }: 1 + { lib, pkgs, ... }: 2 2 { 3 3 4 4 networking.firewall = { ··· 17 17 { 18 18 enable = true; 19 19 package = pkgs.fabricServers.fabric-1_21_1; 20 - jvmOpts = "-Xmx2G -Xms1G"; 21 - operators.yemou = { 22 - uuid = "12069472-23e7-48a8-b893-461483a4da88"; 23 - bypassesPlayerLimit = true; 24 - }; 20 + jvmOpts = lib.strings.concatStringsSep " " [ 21 + "-Xmx2G -Xms2G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions" 22 + "-XX:+AlwaysActAsServerClassMachine -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA" 23 + "-XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M" 24 + "-XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods" 25 + "-XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem" 26 + "-XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1" 27 + "-XX:+UseZGC -XX:AllocatePrefetchStyle=1 -XX:-ZProactive -XX:+UseTransparentHugePages" 28 + ]; 29 + operators.yemou.uuid = "12069472-23e7-48a8-b893-461483a4da88"; 25 30 serverProperties = { 26 31 allow-flight = true; 27 32 allow-nether = false;