View and Test JMX MBeans using JConsole in Red Hat JBoss Enterprise Application Platform
Summary
MBeans, or Managed Beans, as detailed in the JMX specification, are fully supported by Red Hat JBoss Enterprise Application Platform 6. The procedure below describes how to use JConsole to view or execute JMX MBeans in JBoss EAP.
Procedure to Connect JConsole to a Standalone Server
NOTE: The following commands use the replaceable variable EAP_HOME
to denote the path to the Red Hat JBoss Enterprise Application Platform 6 installation. Replace this variable in the commands with the actual path to your JBoss EAP 6 installation.
-
Start the JBoss EAP server.
For Linux: `EAP_HOME`/bin/standalone.sh For Windows: `EAP_HOME`\bin\standalone.bat
-
Open a terminal and run the following command to start JConsole on your local machine:
For Linux: `EAP_HOME`/bin/jconsole.sh For Windows: `EAP_HOME`\bin\jconsole.bat
-
Select the JBoss process and click
Connect
. -
In the JConsole, click on the
MBeans
tab. -
Expand the MBean to view the
Attributes
and test theOperations
.
Comments