1 问题描述:
restful接口内部业务存在利用ActiveMQ发送通知逻辑,并且通知发送过程是同步的,接口在某段时间一直未响应,直到调用方(客户端)调用接口时间超时。此时将java进程的jstack日志打印出来,得出接口阻塞在发送通知处,同时,通知服务产生如下日志:
ActiveMQ运行日志如下:
2019-06-13T18:22:25.244+08:00 INFO .broker.region.Topic [ActiveMQ NIO Worker 3] Usage(default:store:topic://##.##.topic.resources_change:store) percentUsage=0%, usage=22967578, limit=10737418240, percentUsageMinDelta=1%;Parent:Usage(default:store) percentUsage=109%, usage=22967578, limit=21070779, percentUsageMinDelta=1%: Persistent store is Full, 100% of 10737418240. Stopping producer (ID:****************************) to prevent flooding topic://##.##.topic.resources_change. See http://activemq.apache.org/producer-flow-control.html for more info (blocking for: 9124s)