Adjust JVM memory settings for Minecraft server configuration

This commit is contained in:
Root User 2026-04-06 13:08:33 +03:00
parent 3d05307c93
commit a6bc09caac
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -78,9 +78,8 @@ in {
package = pkgs.neoforgeServers.neoforge-1_21_1-21_1_220; package = pkgs.neoforgeServers.neoforge-1_21_1-21_1_220;
jvmOpts = lib.concatStringsSep " " [ jvmOpts = lib.concatStringsSep " " [
"-Xms28G" "-Xms18G"
# Use 120GB of RA "-Xmx45G"
"-Xmx32G"
]; ];
serverProperties = { serverProperties = {
@ -133,7 +132,7 @@ in {
jvmOpts = lib.concatStringsSep " " [ jvmOpts = lib.concatStringsSep " " [
"-Xms54G" "-Xms54G"
# Use 120GB of RA # Use 120GB of RA
"-Xmx120G" "-Xmx70G"
"-XX:+UseG1GC" "-XX:+UseG1GC"
"-XX:+ParallelRefProcEnabled" "-XX:+ParallelRefProcEnabled"