Enabling Remote JMX Monitoring on JBoss Application Server
Perform the following steps for remote JMX monitoring using Java VisualVM for JBoss Application Server.
Procedure
-
Create Management User Credentials
While connecting to JavaVisualVM, you need to mention the management user credentials. Therefore, first create the management user credentials.
- Go to $JBOSS_HOME/bin directory and run add-user.bat or add-user.sh file. The following two options are displayed in the command prompt.
- Type a. You need to enter Realm credentials.
- Press Enter. You need to enter user credentials.
- Type the user name, password, and confirm password.
-
Type yes to proceed with the entered user credentials.
Management user is successfully created.
- Modify standalone.xml file
- Start JBoss Application Server
-
Start Java VisualVM
-
Go to
$JBOSS_HOME/bin/client directory and copy
jboss-client-7.1.0.Final.jar and place it to the
$JAVA_HOME/lib directory.
Ensure that JAVA_HOME refers to the location from where you want to run Java VisualVM.
- On the command line, type $JAVA_HOME/bin.
-
Enter the following command:
jvisualvm --cp:a $JAVA_HOME\lib\jboss-client-7.1.0.Final.jar
The JavaVisualVM window is displayed with the Local and Remote options.
-
Go to
$JBOSS_HOME/bin/client directory and copy
jboss-client-7.1.0.Final.jar and place it to the
$JAVA_HOME/lib directory.
-
Add JMX Connection
-
For the Remote option, double-click or right-click to add the host name. After adding the host name, you need to add the JMX connection. Type the following URL in the Connection field:
service:jmx:remoting-jmx://IPAddress:9999
For example, service:jmx:remoting-jmx://10.97.108.72:9999.
In this case, 9999 is the JMX port for the TIBCO MDM Server on 10.97.108.72.
- Specify the user credentials that you have created in Create Management User Credentials.
-
Click
Connect.
If the JMX connection is successful, the connection URL link is displayed following the host name.
-
For the Remote option, double-click or right-click to add the host name. After adding the host name, you need to add the JMX connection. Type the following URL in the Connection field: