ActiveMQ:一条待处理消息,但队列为空-ActiveMQ 5.12.0 [英] ActiveMQ: One Pending Message but Queue is empty - ActiveMQ 5.12.0

查看:245
本文介绍了ActiveMQ:一条待处理消息,但队列为空-ActiveMQ 5.12.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了与此处所述相同的问题:




  • 其他客户:


    • 具有相同的行为

    • 我的Java用户


      • 不消耗任何东西

      • 重启后,继续消耗





我们不是在默认的kaha db中而是在Oracle DB中保留消息。我可以在表ACTIVEMQ_MSGS中的数据库中看到待处理的消息。



重新启动activeMQ后,所有客户端均按预期工作。在管理控制台中,我可以看到消息,而Java用户使用了这些消息。



通过更新ActiveMQ 5.7.0解决了上述存在的问题。
我检查了activeMQ日志,但没有发现错误或警告。消息的生产者也未更改。



我为什么会遇到这些问题?

解决方案

问题已解决。
我也在活动的mq邮件列表中询问:
http://activemq.2283324.n4.nabble.com/One-Pending-Message-but-Queue-is-empty-ActiveMQ-5 -12-0-td4715720.html




  • 首先,我们在客户端添加了此方法调用:

      org.apache.camel.ConsumerTemplate.doneUoW(交换)

    ,但最终没有解决问题


  • 此外,我们在活动mq中存在加载问题看不见(healthStatus是好,并且jvm值也很好)。


    • 我们在activeMQ中有太多队列用于记录旧消息。

    • 删除它们后,现在一切正常。



I have the same issue as described here: ActiveMQ: One Pending Message but Queue is empty.

Active MQ shows pending messages for the queue but when I click it it's empty.

  • Further clients:
    • with hawtio - same behaviour
    • my java consumer
      • does not consume anything
      • after restart, continued to consume

We persist our messages not in default kaha db but in Oracle DB. I could see the pending messages in database in table ACTIVEMQ_MSGS.

After restart of activeMQ all clients worked as expected. In the administration console I could see the messages and the java consumer consumed the messages.

The mentioned exsiting issue was solved with an update to ActiveMQ 5.7.0. I checked the activeMQ logs but I didn't found errors or warnings. Producer for the messages was also not changed.

Any idea why I experience these issues?

解决方案

Issue is solved now. I also asked in the active mq mailing list: http://activemq.2283324.n4.nabble.com/One-Pending-Message-but-Queue-is-empty-ActiveMQ-5-12-0-td4715720.html.

  • First of all we added this method call in our client:

    org.apache.camel.ConsumerTemplate.doneUoW(Exchange exchange)
    

    but it didn't solve the problem finally

  • Furthermore we had load problems in active mq which weren't visible (healthStatus was "good" and jvm values looked also fine).
    • We had too many queues in activeMQ used for logging the old messages.
    • After deletion of them everything works fine now.

这篇关于ActiveMQ:一条待处理消息,但队列为空-ActiveMQ 5.12.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆