除了使用 JMX API 之外,监视 apache Active MQ 的最佳替代方法是什么
我已经尝试并测试了 JMX API,它使用起来非常简单,并且提供了监控 ActiveMQ 所需的大量统计信息。
但问题是,我不想远程监控我的 ActiveMQ,也不想使用另一个 API。更准确地说,我想使用 JMS API 本身来获取与各个目的地和代理本身相关的统计信息。
建议消息似乎是一种替代方案,但它们提供的管理消息数量有限以供监控。
任何意见都将受到高度赞赏...
I have tried and tested the JMX API and it is pretty simple to use and provides a vast number of statistics required for monitoring ActiveMQ.
But the problem is, i dont want to monitor my ActiveMQ remotely and also i dont want to use another API.To be more precise, i want to use the JMS API itself to get statistics related to various destinations and the broker itself.
Advisory messages seem to be an alternative but they provide limited Amount of Administrative Messages to monitor.
Any input is highly appreciated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对此没有内置支持。但是您可以实现一个 JMS 主题,每隔几秒发布一次监控数据。使连接成为非持久连接,以便在没有侦听器或连接断开时连接不会堆积。
现在您可以编写一个连接到该主题的客户端,它将接收更新。
There is no built-in support for this. But you can implement a JMS topic which publishes the monitoring data every few seconds. Make the connection non-persistent so that it doesn't pile up when there are no listeners or when they loose connection.
Now you can write a client that connects to this topic and it will receive updates.
AMQ-2379 产生了一个代理插件,用于通过发送简单的 JMS 消息从目的地获取统计信息。在此处查看显示如何使用它的文档:
http://activemq.apache.org/statisticsplugin。 html
统计插件在 5.3 版本中可用。
AMQ-2379 resulted in a broker plugin for grabbing statistics from destinations by sending a simple JMS message. Check out the docs that show how to use it here:
http://activemq.apache.org/statisticsplugin.html
The statistics plugin is available in the 5.3 release.
您可以查看此 http://issues.apache.org/activemq/browse/AMQ- 2379,它将在即将发布的 5.3.0 版本中提供
You can checkout this http://issues.apache.org/activemq/browse/AMQ-2379, it will be avaiable in upcoming 5.3.0 release
有一篇博客文章正在排队 http://issues.apache.org/activemq /browse/AMQ-2379 - 将在几天左右发布
There's a blog post queued up to go on http://issues.apache.org/activemq/browse/AMQ-2379 - will post it in a couple of days or so