You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by "xiwolaisi (via GitHub)" <gi...@apache.org> on 2023/10/13 09:56:43 UTC

[I] Run two or more rockermq container in a host set the max heap size. [rocketmq-docker]

xiwolaisi opened a new issue, #93:
URL: https://github.com/apache/rocketmq-docker/issues/93

   well,when we used docker to run rocketmq two or more container in a host,we found that the max heap size can‘t limited by cgroups.
   so, why it happened?


-- 
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-unsubscribe@rocketmq.apache.org.apache.org

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


Re: [I] Run two or more rockermq container in a host set the max heap size. [rocketmq-docker]

Posted by "xiwolaisi (via GitHub)" <gi...@apache.org>.
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-unsubscribe@rocketmq.apache.org

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