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

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   **Root Cause:** Each `RocketMQMessageListener` creates its own `ClientImpl` 
instance via `registerContainer`, which initializes thread pools sized at `2 × 
CPU cores`. With N listeners, total threads = N × 2 × cores.
   
   **Impact:** On a 12-core machine with 30 listeners → 720 threads. This 
causes excessive context switching, memory overhead, and potential thread 
exhaustion.
   
   **Severity:** Medium-High — affects any application with multiple listeners 
on multi-core machines.
   
   **Suggested fix:** Listeners should share a common `ClientManager` or thread 
pool rather than each creating independent `ClientImpl` instances with their 
own thread pools.
   
   ---
   *Automated evaluation by github-manager*


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to