本文介绍了为ActiveMQ配置JMX以远程访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以提供有关如何在新安装的5.5.0版本上启用JMX(可以远程访问)的详细步骤?

Anyone can give the detailed steps on how to enable JMX (can be access remotely) on a newly installed 5.5.0 version?

推荐答案

在您的activemq.xml文件中,需要确保您的代理元素上的useJmx为true:

In your activemq.xml file, you need make sure useJmx is true on your broker element:

<broker xmlns="http://activemq.org/config/1.0" brokerName="localhost" useJmx="true">

并确保您具有管理环境

<managementContext>
  <managementContext createConnector="true" connectorPort="1099"/>
</managementContext>

从那里开始只是要确保可以通过TCP连接到端口1099上的代理,或您指定的任何端口。在EC2之类的服务上,或者在需要进行大量NAT的任何事情上,这并不那么简单:

From there it is just a matter of making sure you can connect over TCP to your broker on port 1099 or whatever port you specify. This doesn't work quite so straightforward on services like EC2 or anything that does some heavy NAT'ing: http://jmsbrdy.com/monitoring-java-applications-running-on-ec2-i

这篇关于为ActiveMQ配置JMX以远程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 23:16