【问题标题】:ActiveMQ ActiveMQ.Advisory.TempQueue getting bigger and biggerActiveMQ ActiveMQ.Advisory.TempQueue 越来越大
【发布时间】:2017-10-15 07:47:52
【问题描述】:

问题, 由于某些原因(我不知道为什么)在 ActiveMQ 上,ActiveMQ.Advisory.TempQueue 越来越大(每天 1GB)。 这是一个快照:

 Name                      Producer #   Consumer #  Enqueue #   Dequeue #   Memory %    Dispatch #  Always retroactive  Average blocked time    Average enqueue time    Average message size    Blocked producer warning interval   Blocked sends   Dlq Expired count   Forward count   In flight count Max audit depth Max enqueue time    Max message size    Max page size   Max producers to audit  Memory limit    Memory usage byte count Memory usage portion    Min enqueue time    Min message size    Options Prioritized messages    Producer flow control   Queue size  Slow consumer strategy  Store message size  Total blocked time  Use cache   Object name

ActiveMQ.Advisory.TempQueue |   0 | 816 | 187550135 |   0 | 0 | 187836323 | FALSE | 0 | 0.3694736   | 1024 |    30000 | 0    | FALSE |  0 | 0 | 187836323 | 2048 |  1233 |  1024 |  200 |   1024 |  668309914 | 0 | 1 | 0 | 1024 |      FALSE | TRUE |  0 |     0 | 0 | TRUE |  org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Topic,destinationName=ActiveMQ.Advisory.TempQueue

有什么想法吗?

【问题讨论】:

    标签: activemq jms-topic


    【解决方案1】:

    ActiveMQ 中的咨询主题不累积数据,它们是主题,因此当主题上没有消费者时,发送给他们的消息将被丢弃。如果您在咨询主题上有消费者,则消息会通过它,但不会存储在代理的持久存储中。鉴于排队人数不断增加,统计数据有时可能具有欺骗性。

    如果不了解您所看到的更多信息,则无法提供更多帮助。

    如果您在 KahaDB 日志中看到增长,那么它与您的咨询主题无关,因为我已经说过他们不会存储消息,所以还有其他事情发生。 ActiveMQ 网站上有一些很好的 instructions 介绍如何查看是什么使 KahaDB 日志文件保持活动状态,您应该使用这些文件来帮助调试您的问题。

    【讨论】:

    • 您需要什么数据才能弄清楚?我的问题是日志文件占用的 ActiveMQ 空间每天大约增加 1GB。我不知道删除它们是否安全。我查看了控制台,发现 ActiveMQ.Advisory.TempQueue 不断增加……1.8 亿条消息……我认为这个 ActiveMQ.Advisory.TempQueue 正在制造问题。
    • 哪些日志文件,KahaDB?在您告诉我们之前,我们无法知道您的系统上有什么。
    • 我添加了 Web 控制台的屏幕截图,我可以在其中看到该管理主题。是的,它正在使用 KahaDB。
    • 这根本没有帮助,但我添加了一个链接,指向您应该使用的调试 KahaDB 日志保留的说明。
    • 谢谢,我会检查这是否对我有帮助。
    猜你喜欢
    • 2014-05-02
    • 2019-07-01
    • 2019-01-04
    • 1970-01-01
    • 2012-09-12
    • 2020-10-16
    • 1970-01-01
    • 2017-08-03
    • 1970-01-01
    相关资源
    最近更新 更多