You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "gulecroc (via GitHub)" <gi...@apache.org> on 2025/11/04 09:33:43 UTC
[I] Proxy OOM java heap [pulsar-helm-chart]
gulecroc opened a new issue, #639:
URL: https://github.com/apache/pulsar-helm-chart/issues/639
**Describe the bug**
Starting from pulsar helm chart 4.3.0 and image 4.0.7, my pulsar proxy regularly have OOM java heap just when creating tenants/namespaces/topics.
I think this behavior come from new PULSAR_GC configuration.
Perhaps we should increase the default values from :
```
-Xms64m
-Xmx64m
-XX:MaxDirectMemorySize=64m
```
to :
```
-Xms64m
-Xmx128m
-XX:MaxDirectMemorySize=128m
```
**To Reproduce**
Start pulsar proxy with default PULSAR_MEM values, and create some tenants/namespaces/topics in parallel
**Expected behavior**
No JVM crash with default memory values
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
**Additional context**
Add any other context about the problem here.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Proxy OOM java heap [pulsar-helm-chart]
Posted by "gulecroc (via GitHub)" <gi...@apache.org>.
gulecroc commented on issue #639:
URL: https://github.com/apache/pulsar-helm-chart/issues/639#issuecomment-4135671579
> [@gulecroc](https://github.com/gulecroc) do you have TLS enabled for brokers (between proxy and broker)? With a lot of brokers and when TLS is enabled, [this change](https://github.com/apache/pulsar/blob/260c386dc286195cf1b27a127a78be41767f340c/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/DirectProxyHandler.java#L122-L145) in 4.0.2 could have an impact on proxy memory usage.
Hello @lhotari, yes we have TLS enabled on each components.
I created this request because I hadn't observed this behavior in the previous version. I believe it was Helm chart 4.2.0 and image 4.0.6.
--
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
Re: [I] Proxy OOM java heap [pulsar-helm-chart]
Posted by "michal0000000 (via GitHub)" <gi...@apache.org>.
michal0000000 commented on issue #639:
URL: https://github.com/apache/pulsar-helm-chart/issues/639#issuecomment-3534309358
The default memory limit settings are too low. What you need to do is increase them for the pod as well as in the command:
```
resources:
requests:
cpu: 1
memory: 512Mi
command: ["sh", "-c"]
args:
- |
export PULSAR_MEM="-Xmx512M";
bin/apply-config-from-env.py conf/proxy.conf &&
echo "OK" > "${statusFilePath:-status}" &&
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
```
--
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
Re: [I] Proxy OOM java heap [pulsar-helm-chart]
Posted by "sdb-dev (via GitHub)" <gi...@apache.org>.
sdb-dev commented on issue #639:
URL: https://github.com/apache/pulsar-helm-chart/issues/639#issuecomment-3504616245
+1
I too am having the same issue with the latest chart (4.3.0) . It is consistently crashing / running out of memory (heap).
--
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
Re: [I] Proxy OOM java heap [pulsar-helm-chart]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari closed issue #639: Proxy OOM java heap
URL: https://github.com/apache/pulsar-helm-chart/issues/639
--
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
Re: [I] Proxy OOM java heap [pulsar-helm-chart]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari commented on issue #639:
URL: https://github.com/apache/pulsar-helm-chart/issues/639#issuecomment-4125931227
@gulecroc do you have TLS enabled for brokers (between proxy and broker)?
With a lot of brokers and when TLS is enabled, [this change](https://github.com/apache/pulsar/blob/260c386dc286195cf1b27a127a78be41767f340c/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/DirectProxyHandler.java#L122-L145) in 4.0.2 could have an impact on proxy memory usage.
--
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