Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. ServiceMix should be running first. Please see the Getting Started guide for instructions on running ServiceMix.
  2. Start JConsole from a command shell. The JConsole executable can be found in the bin directory of the J2SE installation directory.
    Code Block
    cd [J2SE_install_dir]\bin
    jconsole
    
    The JConsole window will appear.

  3. 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 the app_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 on localhost, enter the following: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX.


  4. Click the Connect box to connect to the ServiceMix container. org.servicemix will be visible in the console. Click on org.servicemix to see its MBeans.

    Panel
    borderColor#ccc
    titleJConsole Management & Monitoring
    borderStylesolid


...

  1. To see JConsole in action, start one of the ServiceMix examples running, for instance, the Basic Example:
    Code Block
    cd [servicemix_install_dir]\examples\basic
    ..\..\bin\servicemix servicemix.xml
    
    where servicemix_install_dir is the directory in which ServiceMix was installed.
  2. Run JConsole (see the previous section) and click on org.servicemix.
  3. Click on org.servicemix.jbi.framework.ComponentMBeanImpl. The components of the Basic example will be shown. Clicking on any of them will show the monitoring information available.
    Panel
    borderColor#ccc
    titleJConsole Monitoring & Management Console
    borderStylesolid

    Image Modified

Using MC4J

MC4J is a JMX Console. It can connect to J2EE servers, MBeans, and other applications to monitor them.

...