KB Article #181257
Enable JMX for embedded ActiveMQ
Problem
- How do I enable JMX for API Gateway's embedded ActiveMQ broker?
- Is there another way to monitor embedded ActiveMQ?
Resolution
JMX can be enabled for our embedded ActiveMQ by adding this line to your instance's envSettings.props file.
env.BROKER.USEJMX=true
After restart, you can then use the JMX tool of your choice, like jconsole, to view the ActiveMQ MBean.
Additional information:
- Use the ActiveMQ JMX beans for read only operations. Use of operations that make changes, like add/remove/purge message(s) is not supported.
- By default the JVM will only allow local JMX connections. If remote access is needed, you can enable it; for a non secure example see KB 16394. Please use security appropriate for your environment.