How do I turn on JMX in ActiveMQ 5.2

社会主义新天地 提交于 2019-12-10 13:57:43

问题


Whats the proper way to enable JMX in ActiveMQ 5.2? I've seen conflicting documents, so I was wondering if anyone out there knows what the proper config file change should be. I think I might have it working by changing the batch file I use to start ActiveMQ, but I don't really know.


回答1:


<!-- Use the following to configure how ActiveMQ is exposed in JMX -->
<managementContext>
  <managementContext createConnector="true" />
</managementContext>

Put this inside the bean of your broker in the activemq.xml file and it should do the trick. Your connector will be created in localhost:1099, and you shouldn't need to modify the batch file. Regards, Seb




回答2:


with a default installation, just edit your /bin/activemq file and setup the ACTIVEMQ_SUNJMX_START property as follows...

ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"




回答3:


What conflicting documents have you seen? This one explains it pretty well. There is no need to change any batch files.



来源:https://stackoverflow.com/questions/1718948/how-do-i-turn-on-jmx-in-activemq-5-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!