You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "got-root (via GitHub)" <gi...@apache.org> on 2025/02/03 18:43:34 UTC

[PR] Fix OOM issue on broker wait-zookeeper-ready initContainer [pulsar-helm-chart]

got-root opened a new pull request, #568:
URL: https://github.com/apache/pulsar-helm-chart/pull/568

   ### Motivation
   
   Getting OOM issues on broker startup in the wait-zookeeper-ready initContainer:
   ```
   pulsar cluster stellar-pulsar isn't initialized yet ... check in 3 seconds ...                                                                                                                                                         
   [1.007s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [1.694s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.282s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.785s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [3.086s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [3.086s][error][gc] Forced to lower max Java heap size from 2048M(100%) to 1508M(74%)                                                                                                                                                  
   [3.086s][error][gc] Failed to allocate initial Java heap (2048M)                                                                                                                                                                       
   Error: Could not create the Java Virtual Machine.                                                                                                                                                                                      
   Error: A fatal exception has occurred. Program will exit.                                                                                                                                                                              
   pulsar cluster stellar-pulsar isn't initialized yet ... check in 3 seconds ...                                                                                                                                                         
   [1.114s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [1.738s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.111s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.421s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.762s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.762s][error][gc] Forced to lower max Java heap size from 2048M(100%) to 1508M(74%)                                                                                                                                                  
   [2.762s][error][gc] Failed to allocate initial Java heap (2048M)                                                                                                                                                                       
   Error: Could not create the Java Virtual Machine.                                                                                                                                                                                      
   Error: A fatal exception has occurred. Program will exit.                                                                                                                                                                              
   pulsar cluster stellar-pulsar isn't initialized yet ... check in 3 seconds ...                                                                                                                                                         
   [1.082s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [1.707s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.067s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.354s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.644s][error][gc] Failed to commit memory (Not enough space)                                                                                                                                                                         
   [2.644s][error][gc] Forced to lower max Java heap size from 2048M(100%) to 1508M(74%)                                                                                                                                                  
   [2.644s][error][gc] Failed to allocate initial Java heap (2048M)                                                                                                                                                                       
   Error: Could not create the Java Virtual Machine.                                                                                                                                                                                      
   Error: A fatal exception has occurred. Program will exit. 
   Killed
   ```
   
   ### Modifications
   
   Looks like the check to see if zookeeper is running mistakenly has set the `BOOKIE_MEM` env var when it should be setting `PULSAR_MEM` instead.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   - [ ] Tested on live env
   


-- 
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: [PR] Fix OOM issue on broker wait-zookeeper-ready initContainer [pulsar-helm-chart]

Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #568:
URL: https://github.com/apache/pulsar-helm-chart/pull/568


-- 
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