Send [3] times, still failed, cost [13]ms消息队列发送失败

 2021-10-31 00:25:30.332 ERROR org.apache.rocketmq.spring.core.RocketMQTemplate - syncSend failed. destination:zzeduLogVideoTempData25, message:GenericMessage [payload=byte[84], headers={contentType=text/plain;charset=UTF-8, id=b4bcd8ab-d4d2-c622-4873-d44d55ab73d8, timestamp=1635611130329}] 
 2021-10-31 00:25:30.332 ERROR com.yunhe.zzedu.web.controller.chapter.ChapterController - 放队列失败:Send [3] times, still failed, cost [3]ms, Topic: zzeduLogVideoTempData25, BrokersSent: [ip-172-31-43-102.cn-northwest-1.compute.internal, ip-172-31-43-102.cn-northwest-1.compute.internal, ip-172-31-43-102.cn-northwest-1.compute.internal]
See http://rocketmq.apache.org/docs/faq/ for further details.; nested exception is org.apache.rocketmq.client.exception.MQClientException: Send [3] times, still failed, cost [3]ms, Topic: zzeduLogVideoTempData25, BrokersSent: [ip-172-31-43-102.cn-northwest-1.compute.internal, ip-172-31-43-102.cn-northwest-1.compute.internal, ip-172-31-43-102.cn-northwest-1.compute.internal]
See http://rocketmq.apache.org/docs/faq/ for further details.

原因:服务器根目录内存不足

mq会读取所在服务器的根目录内存,当内存不足10%时,就会报出内存不足异常,导致生产者发送失败。
解决方案:将根目录中无用的目录和文件删除,清理根目录空间直至空间利用率大于10%,(可能导致原因是mq的日志文件占用空间太大,文件名rocketmq_client.log,禁用mq的日志就行) 

你可能感兴趣的:(rocketmq,rocketmq)