rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

[Bug] consumerManagerThreadPoolQueueCapacity has settings but is not used

Open frinda opened this issue 1 year ago • 2 comments

Before Creating the Bug Report

  • [X] I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • [X] I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

SUSE Linux Enterprise Server 12 SP5

RocketMQ version

4.9.x

JDK Version

JDK 8

Describe the Bug

consumerManagerThreadPoolQueueCapacity has settings but is not used https://github.com/apache/rocketmq/blob/4.9.x/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java

Steps to Reproduce

NA

What Did You Expect to See?

consumerManagerThreadPoolQueueCapacity has settings and be used

What Did You See Instead?

consumerManagerThreadPoolQueueCapacity has settings but is not used

Additional Context

No response

frinda avatar Apr 24 '24 03:04 frinda

The consumerManageExecutor is initialized as a newFixedThreadPool, which's queue size is Integer.MAX_VALUE. What's the value do you want to set? And did you meet some problems caused by this parameter?

humkum avatar Apr 24 '24 09:04 humkum

I haven't had a problem because of this. but this may cause OOM

frinda avatar Apr 26 '24 07:04 frinda

This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.

github-actions[bot] avatar Apr 27 '25 00:04 github-actions[bot]

This issue was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar May 01 '25 00:05 github-actions[bot]