From fe8b97179a37a74b4e925866c8c00058713535c7 Mon Sep 17 00:00:00 2001 From: spbolton Date: Tue, 27 Aug 2024 19:16:18 +0100 Subject: [PATCH] feat(deployment): Update to ZGC ZGenerational garbage collection (#29759) (#29760) ### Proposed Changes * Replace existing ShenandoahGC options for -XX:+UseZGC -XX:+ZGenerational Depends upon PR https://github.com/dotCMS/core/pull/29758 This should be merged after the parent PR as it includes the changes of that PR ### Checklist - [ ] Tests - [ ] Translations - [ ] Security Implications Contemplated (add notes if applicable) ### Additional Info This PR resolves #29759 (Updaate to ZGC ZGenerational garbage collection su). ### Screenshots Original | Updated :-------------------------:|:-------------------------: ** original screenshot ** | ** updated screenshot ** --- dotCMS/src/main/docker/original/ROOT/srv/00-config-defaults.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotCMS/src/main/docker/original/ROOT/srv/00-config-defaults.sh b/dotCMS/src/main/docker/original/ROOT/srv/00-config-defaults.sh index 3c4a5df92951..878618e9941c 100755 --- a/dotCMS/src/main/docker/original/ROOT/srv/00-config-defaults.sh +++ b/dotCMS/src/main/docker/original/ROOT/srv/00-config-defaults.sh @@ -14,7 +14,7 @@ export LANG=${LANG:-"C.UTF-8"} export TOMCAT_HOME=/srv/dotserver/tomcat # JAVA args to pass to the Tomcat JVM -export JAVA_OPTS_BASE=${JAVA_OPTS_BASE:-"-Djava.awt.headless=true -Dfile.encoding=UTF8 -server -Dpdfbox.fontcache=/data/local/dotsecure -Dlog4j2.formatMsgNoLookups=true -Djava.library.path=/usr/lib/$( uname -m )-linux-gnu/ -XX:+UseShenandoahGC -XX:+UnlockExperimentalVMOptions -XX:ShenandoahUncommitDelay=1000 -XX:ShenandoahGuaranteedGCInterval=10000 "} +export JAVA_OPTS_BASE=${JAVA_OPTS_BASE:-"-Djava.awt.headless=true -Dfile.encoding=UTF8 -server -Dpdfbox.fontcache=/data/local/dotsecure -Dlog4j2.formatMsgNoLookups=true -Djava.library.path=/usr/lib/$( uname -m )-linux-gnu/ -XX:+UseZGC -XX:+ZGenerational "} export JAVA_OPTS_MEMORY=${JAVA_OPTS_MEMORY:-"-Xmx1G"} # $CMS_JAVA_OPTS is last so it trumps them all