我如何观察 ActiveMQ 背后发生的情况?
我遇到问题使用 ActiveMQ 并希望跟踪/查看所有 ActiveMQ 活动。 我能找到的唯一日志文件是与持久数据相关的日志文件(如果此功能已打开)。 我是否查看或生成了任何其他日志文件来告诉我 ActiveMQ 背后发生了什么以及为什么我的消费者不消费消息? 还有其他建议吗?
提前致谢!
I'm experiencing an issue with ActiveMQ and would like to trace/view all ActiveMQ activity. The only log file I can find is one associated with persistent data (if this is turned on). Are there any other log files I view or generate to tell me what's happening under the hood of ActiveMQ and why my consumers aren't consuming messages? Any other suggestions?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
activemq 有一个可以连接的 jmx 接口。
这使我们能够访问队列中的消费者计数消息以及有关内存使用情况等的各种数据。
http://activemq .apache.org/jmx.html
包含帮助您入门的所有详细信息。
我发现它非常适合了解 activemq 的情况。
快速启动 jconsole,您就可以很好地了解发生了什么。
保罗
activemq has a jmx interface that you can connect to.
this gives us access to consumer counts messages queued dequeue and all sorts of data on memory usage etc.
http://activemq.apache.org/jmx.html
Has all the details to get you started.
I find it excellent in finding out whats going on with activemq.
A quick firing up of jconsole and you will be well on your way to finding out what is going on.
Paul
同意。 您还可以添加 日志拦截器 这会有所帮助。
最后,为了浏览消息、移动消息、创建/删除队列和发送消息,我强烈推荐用于 ActiveMQ、Camel 和许多其他 插件:hawtio
Agreed. Also you can add the logging interceptor which helps.
Finally for browsing messages, moving them, creating/deleting queues and sending message I highly recommend the new web console for ActiveMQ, Camel and many other plugins: hawtio
尝试 HawtIO。 假设您没有使用 Active MQ 5.9,您可以将此功能添加到您的代理中。 它是一个更好的 Web 控制台,也是一个很好的 JMX 监控实用程序。
http://www.christianposta.com/blog/?p=315
Try HawtIO. Assuming you are not using Active MQ 5.9 you can add this feature to your broker. It is a much better web console and a good JMX monitoring utility as well.
http://www.christianposta.com/blog/?p=315