...
- ServiceMix should be running first. Please see the #Getting Started Guide for instructions on running ServiceMix.
- Run Start JConsole from a command shell. The JConsole executable can be found in the
bin
directory of the J2SE installation directory.
The JConsole window will appear.Code Block cd [J2SE_install_dir]\bin jconsole
- Click on the Advanced tab. The following URL must be entered in the "JMX URL" box: service:jmx:rmi:///jndi/rmi://hostname:port/app_to_monitor. Where the ((hostname}} is name of the host on which the application to be monitored is running, the
port
is the port number to connect to the application, and theapp_to_monitor
is the JMX enabled application to monitor. For example, if none of the defaults for ServiceMix have been modified and ServiceMix is running onlocalhost
, enter the following:service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX
.Panel borderColor #ccc title JConsole Agent borderStyle solid - Click the Connect box to connect to the ServiceMix container.
org.servicemix
will be visible in the console. Click onorg.servicemix
to see its MBeans.Panel borderColor #ccc title JConsole Management & Monitoring borderStyle solid
...
Using MC4J
MC4J is a JMX Console. It can connect to J2EE servers, MBeans, and applications and monitor them.
How to Use MC4Jto Monitor ServiceMix
This section explains how to configure MC4Jto monitor ServiceMix. The ServiceMix port number, the ServiceMix container id, and the JMX Service URL will be needed. This information was specified in the previous section in the Default Settings box.
- ServiceMix should be running first. Please see the #Getting Started Guide for instructions on running ServiceMix.
- Start MC4J from a command shell. The JConsole executable can be found in the
bin
directory of the J2SE installation directory.
The JConsole window will appear.Code Block cd [J2SE_install_dir]\bin jconsole
- Click on the Advanced tab. The following URL must be entered in the "JMX URL" box: service:jmx:rmi:///jndi/rmi://hostname:port/app_to_monitor. Where the ((hostname}} is name of the host on which the application to be monitored is running, the
port
is the port number to connect to the application, and theapp_to_monitor
is the JMX enabled application to monitor. For example, if none of the defaults for ServiceMix have been modified and ServiceMix is running onlocalhost
, enter the following:service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX
.Panel borderColor #ccc title JConsole Agent borderStyle solid - Click the Connect box to connect to the ServiceMix container.
org.servicemix
will be visible in the console. Click onorg.servicemix
to see its MBeans.Panel borderColor #ccc title JConsole Management & Monitoring borderStyle solid
When you want to get at the ServiceMix MBeans using MC4J use JSR160 as your server connection type and the above default JMX Service URL as your server URL.
...