sijie closed pull request #1831: Don't set Pulsar Memory if variable is already set URL: https://github.com/apache/incubator-pulsar/pull/1831
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/conf/pulsar_tools_env.sh b/conf/pulsar_tools_env.sh index 7eca6071d2..7ad022ff43 100755 --- a/conf/pulsar_tools_env.sh +++ b/conf/pulsar_tools_env.sh @@ -42,7 +42,7 @@ # PULSAR_GLOBAL_ZK_CONF= # Extra options to be passed to the jvm -PULSAR_MEM=" -Xmx256m -XX:MaxDirectMemorySize=256m" +PULSAR_MEM=${PULSAR_MEM:-"-Xmx256m -XX:MaxDirectMemorySize=256m"} # Garbage collection options PULSAR_GC=" -client " ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services