Closed hq-git closed 6 days ago
broker setup
copy an runbroker.sh,runserver.sh
-v ./data/broker/bin/runbroker.sh:/home/rocketmq/rocketmq-${ROCKETMQ_VERSION}/bin/runbroker.sh
-v ./data/broker/bin/runserver.sh:/home/rocketmq/rocketmq-${ROCKETMQ_VERSION}/bin/runserver.sh
+1
BUG REPORT
Please describe the issue you observed:
I want to run rocketmq container and set a limit for the max heap size.
I want to through adding a docker container environment variable e.g.
MAX_HEAP_SIZE
to set the limit for the max heap size.The script https://github.com/apache/rocketmq-docker/blob/master/image-build/scripts/runbroker-customize.sh using
calculate_heap_sizes
function to calculate heap size, which often makes the MAX_HEAP_SIZE too large and causing OOM.Please tell us about your environment:
Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
calculate_heap_sizes
function will not overrides the values ofMAX_HEAP_SIZE
andHEAP_NEWSIZE
variables, when they already have values.