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

[D] JVM parameter configuration failure [rocketmq]

GitHub user MmringZee created a discussion: JVM parameter configuration failure

I have changed the JVM related parameters of runserver.sh and runbroker.sh by modifying them, but with the command
`$ nohup sh bin/mqnamesrv &`  and  `$ nohup sh bin/mqbroker -n localhost:9876 --enable-proxy &` . After starting rocketmq, I found that rocketmq's memory footprint still reached nearly 8 GB.
 
![Uploading 20240117-184124.jpg…]()
![20240117-184132](https://github.com/apache/rocketmq/assets/113001598/f5863064-ae9a-4c59-8d20-da34d5cd9d86)
![20240117-184137](https://github.com/apache/rocketmq/assets/113001598/b9b06b25-3212-4003-8fbd-64f5bc02ba01)
![20240117-184142](https://github.com/apache/rocketmq/assets/113001598/e75fe922-e988-44f2-a305-9c12c92e0526)



GitHub link: https://github.com/apache/rocketmq/discussions/7759

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "MmringZee (via GitHub)" <gi...@apache.org>.
GitHub user MmringZee added a comment to the discussion: JVM parameter configuration failure

但是虚拟内存也意味着rocketmq需要申请到那么多资源才能启动,即使不需要真实地使用。
我现在的场景就是需要在k8s里部署rocketmq,但是因为这个情况我发现我不得不把request设置得很大,这会占用掉很多的集群资源 T.T

GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8175938

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "leizhiyuan (via GitHub)" <gi...@apache.org>.
GitHub user leizhiyuan added a comment to the discussion: JVM parameter configuration failure

你直接在容器里面看 ps aux|grep java 看看jvm参数实际生效的是什么,我们在2C4G的容器里也能跑起来的

GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8176143

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "leizhiyuan (via GitHub)" <gi...@apache.org>.
GitHub user leizhiyuan added a comment to the discussion: JVM parameter configuration failure

没有,虚拟内存是可以大于物理内存的啊

GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8178126

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "MmringZee (via GitHub)" <gi...@apache.org>.
GitHub user MmringZee added a comment to the discussion: JVM parameter configuration failure

刚看了一下,虚拟内存占了9个多G,实际内存1个多G,很离谱。你们是在rocketmq打成镜像前把那两个启动脚本里的JVM参数改了就ok了吗?没有做其他和内存相关的配置了嘛

GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8178099

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "leizhiyuan (via GitHub)" <gi...@apache.org>.
GitHub user leizhiyuan added a comment to the discussion: JVM parameter configuration failure

这是虚拟内存

GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8175754

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "MmringZee (via GitHub)" <gi...@apache.org>.
GitHub user MmringZee added a comment to the discussion: JVM parameter configuration failure

Here's the first picture.
![20240117-184124](https://github.com/apache/rocketmq/assets/113001598/153e84bd-5545-48d0-9d04-43a1c2a02c1a)


GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8155075

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] JVM parameter configuration failure [rocketmq]

Posted by "MmringZee (via GitHub)" <gi...@apache.org>.
GitHub user MmringZee edited a comment on the discussion: JVM parameter configuration failure

但是虚拟内存也意味着rocketmq需要申请到那么多资源才能启动,即使不需要真实地使用。
我现在的场景就是需要在k8s里部署rocketmq,但是因为这个情况我发现我不得不把request设置得很大,这会占用掉很多的集群资源 T.T
我一开始尝试调整jvm参数并把request和limit设置成合理的1、2G甚至2、4G发现都没办法部署一直报OOM。后面在开发环境才发现内存占用量很高这个事情。

GitHub link: https://github.com/apache/rocketmq/discussions/7759#discussioncomment-8175938

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org