Skip to content

Commit dcedcb1

Browse files
author
Jim Baugh
committed
Allow pulsar_tool_env.sh PULSAR_MEM & PULSAR_GC to be Overridden
The pulsar_tool_env.sh sets the PULSAR_MEM and PULSAR_GC environment variables without allowing them to be overridden. This change keps the default values but allows PULSAR_MEM & PULSAR_GC to be overridden which aligns with the pulsar_env.sh file. This allows adjustments to be made to the memory settings when more memory is needed.
1 parent 96a3aa7 commit dcedcb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conf/pulsar_tools_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
# PULSAR_GLOBAL_ZK_CONF=
4343

4444
# Extra options to be passed to the jvm
45-
PULSAR_MEM="-Xmx128m -XX:MaxDirectMemorySize=128m"
45+
PULSAR_MEM=${PULSAR_MEM:-"-Xmx128m -XX:MaxDirectMemorySize=128m"}
4646

4747
# Garbage collection options
48-
PULSAR_GC=" -client "
48+
PULSAR_GC=${PULSAR_GC:-" -client "}
4949

5050
# Extra options to be passed to the jvm
5151
PULSAR_EXTRA_OPTS="${PULSAR_MEM} ${PULSAR_GC} ${PULSAR_GC_LOG} -Dio.netty.leakDetectionLevel=disabled ${PULSAR_EXTRA_OPTS}"

0 commit comments

Comments
 (0)