You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by go...@apache.org on 2021/11/22 02:46:23 UTC
[incubator-inlong] branch master updated: [INLONG-1819]Optimize GC parameter configuration in TubeMQ's env.sh file (#1820)
This is an automated email from the ASF dual-hosted git repository.
gosonzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 2123611 [INLONG-1819]Optimize GC parameter configuration in TubeMQ's env.sh file (#1820)
2123611 is described below
commit 21236118b5fa69e6b4fde8a9880d7f3516b3d2f0
Author: gosonzhang <46...@qq.com>
AuthorDate: Mon Nov 22 10:46:18 2021 +0800
[INLONG-1819]Optimize GC parameter configuration in TubeMQ's env.sh file (#1820)
---
inlong-tubemq/bin/env.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/inlong-tubemq/bin/env.sh b/inlong-tubemq/bin/env.sh
index 4364993..2f04da4 100755
--- a/inlong-tubemq/bin/env.sh
+++ b/inlong-tubemq/bin/env.sh
@@ -31,14 +31,14 @@ export CLASSPATH=$CLASSPATH:$BASE_DIR/conf:$(ls $BASE_DIR/lib/*.jar | tr '\n' :)
#Master jvm args
if [ -z "$MASTER_JVM_SIZE" ]; then
- MASTER_JVM_SIZE="-Xmx10g -Xms6g"
+ MASTER_JVM_SIZE="-Xms15g -Xmx15g -Xmn5g"
fi
-MASTER_JVM_ARGS="$MASTER_JVM_SIZE -server -Dtubemq.home=$tubemq_home -cp $CLASSPATH "
+MASTER_JVM_ARGS="$MASTER_JVM_SIZE -XX:SurvivorRatio=6 -XX:+UseMembar -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark -XX:ParallelCMSThreads=12 -XX:+UseCMSCompactAtFullCollection -verbose:gc -Xloggc:$BASE_DIR/logs/gc.log.`date +%Y-%m-%d-%H-%M-%S` -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=512M -Dsun.net.inetaddr.ttl=3 - [...]
#Broker jvm args
if [ -z "$BROKER_JVM_SIZE" ]; then
- BROKER_JVM_SIZE="-Xmx16g -Xms8g"
+ BROKER_JVM_SIZE="-Xms15g -Xmx15g -Xmn5g"
fi
-BROKER_JVM_ARGS="$BROKER_JVM_SIZE -server -Dtubemq.home=$tubemq_home -cp $CLASSPATH "
+BROKER_JVM_ARGS="$BROKER_JVM_SIZE -XX:SurvivorRatio=6 -XX:MaxDirectMemorySize=10g -XX:+UseMembar -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark -XX:ParallelCMSThreads=12 -XX:+UseCMSCompactAtFullCollection -verbose:gc -Xloggc:$BASE_DIR/logs/gc.log.`date +%Y-%m-%d-%H-%M-%S` -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=512 [...]
#Tools jvm args,you don't have to modify this at all.
TOOLS_JVM_ARGS="-Xmx512m -Xms512m -Dtubemq.home=$tubemq_home -cp $CLASSPATH "
#Tool repair jvm args