You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ji...@apache.org on 2025/03/20 11:06:47 UTC
(ambari) branch trunk updated: AMBARI-26337: Fix Ambari Metrics java home and JVM options (#3960)
This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 348567f892 AMBARI-26337: Fix Ambari Metrics java home and JVM options (#3960)
348567f892 is described below
commit 348567f8921567173caba76ad1c3d6b144c6dc81
Author: jialiang <ji...@gmail.com>
AuthorDate: Thu Mar 20 19:06:42 2025 +0800
AMBARI-26337: Fix Ambari Metrics java home and JVM options (#3960)
---
.../common-services/AMBARI_METRICS/3.0.0/configuration/ams-env.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/configuration/ams-env.xml b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/configuration/ams-env.xml
index 1014dee9a9..0d0fea77aa 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/configuration/ams-env.xml
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/configuration/ams-env.xml
@@ -161,7 +161,7 @@
export AMS_INSTANCE_NAME={{hostname}}
# The java implementation to use. Java 1.6 required.
-export JAVA_HOME={{java64_home}}
+export JAVA_HOME={{java_home}}
# Collector Log directory for log4j
export AMS_COLLECTOR_LOG_DIR={{ams_collector_log_dir}}
@@ -185,13 +185,13 @@ export AMS_COLLECTOR_HEAPSIZE={{metrics_collector_heapsize}}
export AMS_HBASE_INIT_CHECK_ENABLED={{ams_hbase_init_check_enabled}}
# AMS Collector options
-export AMS_COLLECTOR_OPTS="-Djava.library.path=/usr/lib/ams-hbase/lib/hadoop-native --add-opens java.base/java.lang=ALL-UNNAMED"
+export AMS_COLLECTOR_OPTS="-Djava.library.path=/usr/lib/ams-hbase/lib/hadoop-native"
{% if security_enabled %}
export AMS_COLLECTOR_OPTS="$AMS_COLLECTOR_OPTS -Dzookeeper.sasl.client.username={{zk_principal_user}} -Djava.security.auth.login.config={{ams_collector_jaas_config_file}}"
{% endif %}
# AMS Collector GC options
-export AMS_COLLECTOR_GC_OPTS=" -verbose:gc -XX:+PrintGCDetails -Xloggc:{{ams_collector_log_dir}}/collector-gc.log-`date +'%Y%m%d%H%M'`"
+export AMS_COLLECTOR_GC_OPTS="-XX:+UseConcMarkSweepGC -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:{{ams_collector_log_dir}}/collector-gc.log-`date +'%Y%m%d%H%M'`"
export AMS_COLLECTOR_OPTS="$AMS_COLLECTOR_OPTS $AMS_COLLECTOR_GC_OPTS"
# Metrics collector host will be blacklisted for specified number of seconds if metric monitor failed to connect to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org