This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 987e3bcbb4b HDDS-14106. Add -XX:NewRatio=3 to default GC options for 
CMS (#9967)
987e3bcbb4b is described below

commit 987e3bcbb4b1038a37fb060d205c40d922dc7f8a
Author: rnblough <[email protected]>
AuthorDate: Tue Mar 24 06:14:35 2026 -0400

    HDDS-14106. Add -XX:NewRatio=3 to default GC options for CMS (#9967)
---
 hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh 
b/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
index d9800cd3b4f..c646dfc65f2 100755
--- a/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
+++ b/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
@@ -1525,8 +1525,8 @@ function ozone_add_default_gc_opts
     if [[ ! "$OZONE_OPTS" =~ "-XX" ]] ; then
       OZONE_OPTS="${OZONE_OPTS} -XX:ParallelGCThreads=8"
       if [[ "$java_major_version" -lt 15 ]]; then
-        OZONE_OPTS="${OZONE_OPTS} -XX:+UseConcMarkSweepGC 
-XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled"
-        ozone_error "No '-XX:...' jvm parameters are set. Adding safer GC 
settings '-XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC 
-XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled' to the 
OZONE_OPTS"
+        OZONE_OPTS="${OZONE_OPTS} -XX:+UseConcMarkSweepGC -XX:NewRatio=3 
-XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled"
+        ozone_error "No '-XX:...' jvm parameters are set. Adding safer GC 
settings '-XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -XX:NewRatio=3 
-XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled' to the 
OZONE_OPTS"
       else
         ozone_error "No '-XX:...' jvm parameters are set. Adding safer GC 
settings '-XX:ParallelGCThreads=8' to the OZONE_OPTS"
       fi


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to