xiwolaisi commented on issue #93: URL: https://github.com/apache/rocketmq-docker/issues/93#issuecomment-1761255934
we found taht max heap size set by https://github.com/apache/rocketmq-docker/blob/master/image-build/scripts/runbroker-customize.sh the script. In this script , linux set max heap size by "free -m" to calculate.But "free -m" will read host /proc/meminfo,it not cgroups limited. we found lxcfs can make it . when you install lxcfs and run it 。 then you run docker run -it --name my_rocketmq -memory=8g -v /var/lib/lxcfs/proc/meminfo:/proc/meminfo:rw apache/rocketmq:4.7.1 and then you wiil found that “free -m” is 8g -- 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: dev-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org