阿里云RemotingTooMuchRequestException: sendDefaultImpl call timeout

一、问题

Exception in thread "main" org.apache.rocketmq.remoting.exception.RemotingTooMuchRequestException: sendDefaultImpl call timeout
在这里插入图片描述

二、解决方案:

设置发送mq的超时时间6s+
思路:https://blog.csdn.net/qq_16241519/article/details/103926356
在这里插入图片描述

三、排查过程:

百度如下2种可能

1.linux防火墙端口有没有关闭

 systemctl status firewalld
 systemctl stop firewalld

2.是否是因为部署在阿里云上网络不通

在这里插入图片描述
如果你这个是内网地址,则可以尝试执行以下内容,如果是外网,就不用麻烦了

内容来源于:https://blog.csdn.net/Absinthe27/article/details/99544723

我是在阿里云服务器上装的Rocket

安装控制台后会发现集群地址是服务器内网的地址,必须改为外网的地址

修改
conf/broker.properties (4.5版本以下应该是broker.conf)
添加,后面写你的外网地址,namesrvAddr要加端口号namesrvAddr=39.xx.xx.xxx:9876

nohup sh bin/mqnamesrv -n "39.xx.xx.xxx:9876" &
nohup sh bin/mqbroker -n 39.xx.xx.xxx:9876 -c conf/broker.properties autoCreateTopicEnable=true &


简单方法:

如果你的rocketmqrocket控制台不是部署在同一台机器上,可以直接使用rocket控制台手动发送一条消息,如果发送成功,则可以直接排除上面两种原因。

在这里插入图片描述

后续Action

循环10次耗时5s+ ???
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/loveyour_1314/article/details/112727671