From 4018c4da3f4b41f06cc4cc483a87975fb6d3be55 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Sat, 9 May 2026 15:56:28 +0300 Subject: [PATCH] Update JAVA_ARGS in variables.txt to replace garbage collector with G1GC and add various performance tuning options for improved memory management and application responsiveness. --- Server/variables.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/variables.txt b/Server/variables.txt index aebea74..82bc8eb 100644 --- a/Server/variables.txt +++ b/Server/variables.txt @@ -76,7 +76,7 @@ QUILT_INSTALLER_VERSION=0.12.1 RECOMMENDED_JAVA_VERSION=21 WAIT_FOR_USER_INPUT=true JAVA="java" -JAVA_ARGS="-Xmx15G -Xms8G -XX:+UseZGC -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true -Djava.net.preferIPv4Stack=true" +JAVA_ARGS="-Xmx15G -Xms8G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=32M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingRegionThresholdPercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true -Djava.net.preferIPv4Stack=true" ADDITIONAL_ARGS="-Dlog4j2.formatMsgNoLookups=true" SSJ_FORGE_ARGS="-Djava.security.manager=allow" RESTART=true