You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "coderzc (via GitHub)" <gi...@apache.org> on 2023/04/07 10:43:51 UTC

[GitHub] [pulsar] coderzc commented on a diff in pull request #20031: [fix] [cli] Fix Broker crashed by too much memory usage of pulsar tools

coderzc commented on code in PR #20031:
URL: https://github.com/apache/pulsar/pull/20031#discussion_r1160619486


##########
conf/pulsar_tools_env.sh:
##########
@@ -42,6 +42,18 @@
 # PULSAR_GLOBAL_ZK_CONF=
 
 # Extra options to be passed to the jvm
+# Discard parameter "-Xms" of $PULSAR_MEM, which tends to be the Broker's minimum memory, to avoid using too much
+# memory by tools.
+if [ -n "$PULSAR_MEM" ]; then
+  PULSAR_MEM_REWRITE="-Xmx128m -XX:MaxDirectMemorySize=128m"

Review Comment:
   This shell seems to set PULSAR_MEM to `-Xmx128m -XX:MaxDirectMemorySize=128m`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org