...
- Open a command prompt and navigate to the
<JDK_HOME>/bin
directory. - Execute the j
console
command to open the log-in screen of the Java Monitoring & Management Console as shown below. - Enter the connection details in the above screen as follows:
Enter the JMX server URL in the Remote Process field. This URL is published on the command prompt when you start the WSO2 server as explained above.
Info title Tip If you are connecting with a remote IP address instead of localhost, you need to bind the JMX service to the externally accessible IP address by adding the following system property to the product startup script stored in the
<PRODUCT_HOME>/bin
directory (wso2server.sh
for Linux andwso2server.bat
for Windows). For more information, read Troubleshooting Connection Problems in JConsole.Code Block -Djava.rmi.server.hostname=<IP_ADDRESS_WHICH_YOU_USE_TO_CONNECT_TO_SERVER>
Be sure to restart the server after adding the above property.
Enter values for the Username and Password fields to log in. If you are logging in as the administrator, you can use the same administrator account that is used to log in to the product's management console: admin/admin.
Info Make sure that the user ID you are using for JMX monitoring is assigned a role that has the Server Admin permission. See Configuring Roles for further information about configuring roles assigned to users. Any user assigned to the admin role can log in to JMX.
Click Connect to open the Java Monitoring & Management Console. The following tabs will be available:
Localtabgroup Localtab title Overview See the Oracle documentation on using JConsole for more information on these tabs.
Localtab title Memory See the Oracle documentation on using JConsole for more information on these tabs.
Localtab title Threads See the Oracle documentation on using JConsole for more information on these tabs.
Localtab title Classes See the Oracle documentation on using JConsole for more information on these tabs.
Localtab title VM See the Oracle documentation on using JConsole for more information on these tabs.
Localtab title MBeans See the Oracle documentation on using JConsole for more information on these tabs.
...
Example: If you have JMX enabled for the default Carbon datasource in the master-datasources.xml.
file, the JDBC connection pool parameters that are configured for the Carbon datasource will be listed as attributes as shown below. See the performance tuning guide for instructions on how these parameters are configured for a datasource.
...