Connect via JMX (JDK Mission Control - GUI)
Follow the steps below,
-
Download and install JDK Mission Control from https://openjdk.java.net/projects/jmc/
-
Start JDK Mission Control.
Before starting JDK mission control, you must install JRE/JDK on the host.
-
Add a new connection. Click File > Connect
-
Select Create a new connection and click Next.
-
Click on the Custom JMX Service URL button and specify the address as: service:jmx:rmi://127.0.0.1:11099/jndi/rmi://127.0.0.1:11099/jmxrmi
-
Set the username and password with the values _JMX1_ and _JMX2_ respectively and click Next.
-
Choose Start JMX Console and click Finish.
Connect via JMX (JMXTerm - Command line)
Follow the steps below,
-
Install the runnable JAR from https://docs.cyclopsgroup.org/jmxterm
-
Run the command below,
java -jar <jmxterm.jar> -u _JMX1_ -p _JMX2_ -l service:jmx:rmi://127.0.0.1:11099/jndi/rmi://127.0.0.1:11099/jmxrmi
JMXTerm Usage: https://docs.cyclopsgroup.org/jmxterm/user-manual
When JDK Mission Control is connected to ActiveMQ, the password file ‘jmx.password’ in the Docker volume ‘amq-conf’ will be hashed.