org.apache.rocketmq.client.exception.MQBrokerException: CODE: 2 DESC: [TIMEOUT_CLEAN_QUEUE]broker busy, start flow control for a while, period in queue: 200ms, size of queue: 64 For more information,
rocketmq版本4.3.2
解决:修改配置文件
sendMessageThreadPoolNums=32 //添加发送线程数具体根据情况而定
useReentrantLockWhenPutMessage=true //使用ReentrantLock锁默认
源码:
默认使用
PutMessageSpinLock并不支持多线程
PutMessageReentrantLock支持多线程