1

I have a live application that for some reason stopped processing messages. Now after reboot there are 3 millions messages piled up. Looks like it will take about 60 hours to process. I'd like to just purge all of the messages. How safe or dangerous is it to simply run a "DELETE FROM ACTIVEMQ_MSGS" type command to get rid of the messages?

4

1 回答 1

1

直接从持久存储中删除某些内容是不正确的。尝试使用通过JMX公开的 API 。

使用jconsole或类似工具连接到您的代理管理端口(如果未启用 - 请参阅下面的链接)。切换到MBean选项卡,然后:org.apache.activemqyour_instance_nameQueue。然后,使用“清除”操作清理目标队列。

必须在代理中启用 JMX才能使用: http ://activemq.apache.org/jmx.html

于 2013-05-22T09:20:43.590 回答