This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new bd7b0cf Only set pular envs if not already set in the environment.
(#4105)
bd7b0cf is described below
commit bd7b0cfe6860b91fde3fa7e4c0fdf6a870191e46
Author: cckellogg <[email protected]>
AuthorDate: Tue Apr 23 08:25:22 2019 -0700
Only set pular envs if not already set in the environment. (#4105)
---
bin/pulsar | 2 +-
conf/pulsar_env.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/pulsar b/bin/pulsar
index 2ef9a07..9cd8911 100755
--- a/bin/pulsar
+++ b/bin/pulsar
@@ -262,7 +262,7 @@ OPTS="$OPTS -Djute.maxbuffer=10485760
-Djava.net.preferIPv4Stack=true"
OPTS="-cp $PULSAR_CLASSPATH $OPTS"
-OPTS="$OPTS $PULSAR_EXTRA_OPTS"
+OPTS="$OPTS $PULSAR_EXTRA_OPTS $PULSAR_MEM $PULSAR_GC"
# log directory & file
PULSAR_LOG_DIR=${PULSAR_LOG_DIR:-"$PULSAR_HOME/logs"}
diff --git a/conf/pulsar_env.sh b/conf/pulsar_env.sh
index f21d1dd..967b97c 100644
--- a/conf/pulsar_env.sh
+++ b/conf/pulsar_env.sh
@@ -45,10 +45,10 @@
PULSAR_MEM=${PULSAR_MEM:-"-Xms2g -Xmx2g -XX:MaxDirectMemorySize=4g"}
# Garbage collection options
-PULSAR_GC=" -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled
-XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis
-XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50
-XX:+DisableExplicitGC -XX:-ResizePLAB"
+PULSAR_GC=${PULSAR_GC:-"-XX:+UseG1GC -XX:MaxGCPauseMillis=10
-XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions
-XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32
-XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC
-XX:-ResizePLAB"}
# Extra options to be passed to the jvm
-PULSAR_EXTRA_OPTS="${PULSAR_EXTRA_OPTS} ${PULSAR_MEM} ${PULSAR_GC}
-Dio.netty.leakDetectionLevel=disabled
-Dio.netty.recycler.maxCapacity.default=1000
-Dio.netty.recycler.linkCapacity=1024"
+PULSAR_EXTRA_OPTS=${PULSAR_EXTRA_OPTS:-"-Dio.netty.leakDetectionLevel=disabled
-Dio.netty.recycler.maxCapacity.default=1000
-Dio.netty.recycler.linkCapacity=1024"}
# Add extra paths to the bookkeeper classpath
# PULSAR_EXTRA_CLASSPATH=