apache / rocketmq

Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
https://rocketmq.apache.org/
Apache License 2.0
21.19k stars 11.67k forks source link

消息队列RocketMQ版客户端消耗的内存过多 #5262

Closed zhouquanwei closed 2 years ago

zhouquanwei commented 2 years ago
  1. Please describe the issue you observed:

不知道现在是没有,还是说,我的查询关键字有问题 client 4.4.0

nowinkeyy commented 2 years ago

I found some information In client/src/main/java/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.java .

In rocketmq 4.4

image

In rocketmq 5.0

1665400760107

lizhanhui commented 2 years ago

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

ni-ze commented 2 years ago

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

KerryJava commented 2 years ago

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

zhouquanwei commented 2 years ago

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

阿里云上面说 每个topic 有16个队列,每个队列1000条,这样就有点大了,我算了算 要缓存1个g