RockteMQ-AI commented on issue #762: URL: https://github.com/apache/rocketmq-spring/issues/762#issuecomment-5395040853
**Issue Evaluation** Category: `bug` | Status: **Confirmed** Valid resource concern. Each `RocketMQMessageListener` creates a `ClientImpl` which initializes thread pools sized at 2× CPU cores. With 30 listeners on a 12-core machine, this creates ~720 threads — excessive and wasteful. **Root Cause:** Per-listener `ClientImpl` instantiation without shared thread pool or resource pooling. **Impact:** Excessive thread creation, increased memory usage, and potential thread exhaustion under high listener counts. **Severity:** Medium-High **Suggested approach:** Share a common `ClientImpl` (or at least its thread pools) across multiple listeners, or use a bounded thread pool that scales with actual workload rather than CPU cores per listener. --- *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]
