Skip to content

Commit f95c66a

Browse files
committed
-
1 parent 5ceb2aa commit f95c66a

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
@@ -45,10 +45,10 @@
4545
# Discard parameter "-Xms" of $PULSAR_MEM, which tends to be the Broker's minimum memory, to avoid using too much
4646
# memory by tools.
4747
if [ -n "$PULSAR_MEM" ]; then
48-
PULSAR_MEM_REWRITE=""
48+
PULSAR_MEM_REWRITE="-Xmx128m -XX:MaxDirectMemorySize=128m"
4949
for i in $PULSAR_MEM
5050
do
51-
if [ "${i:0:4}" != "-Xms" ];then
51+
if [ "${i:0:4}" != "-Xms" ] && [ "${i:0:4}" != "-Xmx" ] && [ "${i%=*}" != "-XX:MaxDirectMemorySize" ]; then
5252
PULSAR_MEM_REWRITE="$PULSAR_MEM_REWRITE $i";
5353
fi
5454
done

0 commit comments

Comments
 (0)