d4ksn opened a new issue #2271:
URL: https://github.com/apache/rocketmq/issues/2271
```
this.consumeRequestQueue = new LinkedBlockingQueue<Runnable>();
this.consumeExecutor = new ThreadPoolExecutor(
this.defaultMQPushConsumer.getConsumeThreadMin(),
this.defaultMQPushConsumer.getConsumeThreadMax(),
1000 * 60,
TimeUnit.MILLISECONDS,
this.consumeRequestQueue,
new ThreadFactoryImpl("ConsumeMessageThread_"));
```
When I digged into the code, I found that the `ThreadPoolExecutor` in
`ConsumeMessageConcurrentlyService`/`ConsumeMessageOrderlyService` was
constructed with a `LinkedBlockingQueue` with unlimited capacity.
I think this consumer thread pool will never expand automatically, and the
thread count always keep at `consumeThreadMin`. So the `consumeThreadMax`
parameter is actually meaningless...
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]