Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

Chapter 12. Monitoring Your System with the JMX Console

12.1. JMX Console

The JMX Console is a web console for monitoring Java message transactions. You can deploy various M-Beans that gather a miscellany of performance statistics. Access the JMX Console at http://localhost:8080/jmx-console. It allows you to view inside the application server's microkernel to see all of the registered services (which take the form of M-Beans).

12.2. M-Bean

An M-Bean (Managed Bean) is a Java object that represents a manageable resource, such as a service or application. All of the registered services in the application server's micro-kernel are represented as M-Beans.

12.3. Monitoring and Management M-Beans

In the jboss.esb> domain, you will find the following M-Beans:
deployment=<ESB package name>
Use the Deployments M-Bean to see the status of every deployed ESB package and its associated XML configuration.
listener-name=<Listener name>
This M-Bean lists all of the deployed listeners. It shows information about their XML configurations, their start times, their maxThreads and their states.
If your listener has an explicitly-managed thread pool , its current minimum and maximum thread pool counts will also be exposed through this MBean.
The number of active threads in the thread pool will change dynamically between this minimum (which is initially set to one) and the defined maximum as the service load dictates. The administrator has the option of changing these values while the system is running although they will revert to their original values should the server, or ESB artifact, be restarted.
From here, you can also initialize, start, stop and destroy them.
The message counters display all of the services deployed for a given listener, the actions for each of these services, the number of messages processed and the time taken to process each one.
service-name=<Service name>
This M-Bean displays a variety of statistics for each service, including message counts, state, average size and processing time. You can reset message counts and start and stop services from here as well.


In addition to the M-Beans listed above, the Java Message Service domain provides some extra ones. These show statistics for message queues. You might find this information useful when you are debugging the system or analysing its performance.