GitHub user zhiliatom added a comment to the discussion: 
consumerMessageBatchMaxSize未生效

`consumerMessageBatchMaxSize`默认值就是 
1,可以在消费者客户端中修改`consumer.setConsumerMessageBatchMaxSize(32)`生效。注意这个值并不可以无限大,因为客户端每次从
 Broker 
拉取消息到客户端缓存的消息大小、消息条数也是有限制的。服务端通过配置`maxTransferBytesOnMessageInMemory`,`maxTransferCountOnMessageInMemory`,`maxTransferBytesOnMessageInDisk`,`maxTransferBytesOnMessageInDisk`进行限制。
<img width="872" alt="image" 
src="https://github.com/apache/rocketmq/assets/87265072/aa8f2285-cd84-4555-b40b-9c853702df26";>


GitHub link: 
https://github.com/apache/rocketmq/discussions/8189#discussioncomment-9695483

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

Reply via email to