You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/10/10 09:43:13 UTC

[GitHub] [rocketmq] zhouquanwei opened a new issue, #5262: 消息队列RocketMQ版客户端消耗的内存过多

zhouquanwei opened a new issue, #5262:
URL: https://github.com/apache/rocketmq/issues/5262

   
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   在使用rocketmq 的过程中,发现当生产者发送过多消息,但是消费端消费过慢会出现
   消费端频繁gc,我认为是消费端 缓存mq数量过多造成的
   
   - What is expected to see?
   我想控制一下消费端缓存消息的数量
   - What did you see instead?
   我看见 阿里云上面有解决方案  调整Consumer的maxCachedMessageSizeInMiB参数至合适的值,
   但是使用这个在master 直接查询,并没有查到这个变量控制 消息缓存的大小
   https://help.aliyun.com/document_detail/85936.html
   
   不知道现在是没有,还是说,我的查询关键字有问题


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


[GitHub] [rocketmq] KerryJava commented on issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
KerryJava commented on issue #5262:
URL: https://github.com/apache/rocketmq/issues/5262#issuecomment-1284166971

   默认值1000条消息,100M的缓存,貌似也不大啊,为何有GC问题?


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

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


[GitHub] [rocketmq] zhouquanwei commented on issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
zhouquanwei commented on issue #5262:
URL: https://github.com/apache/rocketmq/issues/5262#issuecomment-1284182241

   > 默认值1000条消息,100M的缓存,貌似也不大啊,为何有GC问题?
   
   阿里云上面说 每个topic 有16个队列,每个队列1000条,这样就有点大了,我算了算 要缓存1个g


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

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


[GitHub] [rocketmq] nowinkeyy commented on issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
nowinkeyy commented on issue #5262:
URL: https://github.com/apache/rocketmq/issues/5262#issuecomment-1273165166

   I found some information In `client/src/main/java/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.java` .
   
   **In rocketmq 4.4**
   
   ![image](https://user-images.githubusercontent.com/72536832/194854293-ad723545-72d5-4c36-a145-cdbcbec1d49f.png)
   
   **In rocketmq 5.0**
   
   ![1665400760107](https://user-images.githubusercontent.com/72536832/194854761-ac83ed88-6eda-428d-a90e-42922cfdbacf.png)
   
   


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


[GitHub] [rocketmq] zhouquanwei commented on issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
zhouquanwei commented on issue #5262:
URL: https://github.com/apache/rocketmq/issues/5262#issuecomment-1284178954

   > 
   阿里云说 一个topic有16个队列,每个队列1000条,这样计算就有点大了
   
   
   


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

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


[GitHub] [rocketmq] ni-ze commented on issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
ni-ze commented on issue #5262:
URL: https://github.com/apache/rocketmq/issues/5262#issuecomment-1273988975

   开源的和商业参数名称有一些不一样,但是都是可以通过参数控制,可以看看 @nowinkeyy 同学的回复。


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


[GitHub] [rocketmq] lizhanhui commented on issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
lizhanhui commented on issue #5262:
URL: https://github.com/apache/rocketmq/issues/5262#issuecomment-1273988324

   @aaron-ai  We may make this value heuristic...that is, their default value may be calculated according to the heap size. 


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


[GitHub] [rocketmq] zhouquanwei closed issue #5262: 消息队列RocketMQ版客户端消耗的内存过多

Posted by GitBox <gi...@apache.org>.
zhouquanwei closed issue #5262: 消息队列RocketMQ版客户端消耗的内存过多
URL: https://github.com/apache/rocketmq/issues/5262


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

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