赞
踩
新手刚接触rocketmq,简单写了个producer发送接口,对producer的消息发送接口压测。压测过程中偶尔会出现几次broker busy以及两种超时异常:
1、org.apache.rocketmq.remoting.exception.RemotingTooMuchRequestException: sendDefaultImpl call timeout
2、org.apache.rocketmq.client.exception.MQClientException: Send [3] times, still failed, cost [10001]ms, Topic: testTopic, BrokersSent: [broker-a, broker-b, broker-a]
Caused by: org.apache.rocketmq.remoting.exception.RemotingTimeoutException: wait response on the channel <x.x.x.x:10011> timeout, 0(ms)
我这里报错的端口是我配置的broker端口10011,如果这里报错的是10009,或者是配置端口-2的话,说明是VIP端口,可以先去producer代码中关闭VIP端口。
记录下原因及解决。
关于broker busy解决参考了大佬的博客:https://blog.csdn.net/prestigeding/article/details/92800672
https://blog.csdn.net/hqwang4/article/details/90444299?tdsourcetag=s_pctim_aiomsg
原因
感觉broker busy以及RemotingTooMuchRequestException两个问题的原因差不多:
1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。