You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "RockteMQ-AI (via GitHub)" <gi...@apache.org> on 2026/09/01 01:07:35 UTC

Re: [I] 每个RocketMQMessageListener会创建2 * CPU核数的线程 [rocketmq-spring]

RockteMQ-AI commented on issue #762:
URL: https://github.com/apache/rocketmq-spring/issues/762#issuecomment-5486997759

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   Each `RocketMQMessageListener` creates a `ClientImpl` with 2×CPU-core thread pools. With N listeners on a 12-core machine, this creates 24N threads — clearly excessive.
   
   **Root Cause:** No thread pool sharing between listener instances; each creates independent `ClientImpl`.
   **Impact:** Resource exhaustion with many listeners. On a 12-core machine with 30 listeners = ~720 threads.
   **Severity:** High
   
   This should be addressed by sharing a common `ClientImpl` or thread pool across listeners.
   
   ---
   *Automated evaluation by RockteMQ-AI*


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