This documentation is for WSO2 Carbon 4.4.3. View documentation for the latest release.
Page Comparison - JMX-Based Monitoring (v.2 vs v.3) - Carbon 4.4.3 - WSO2 Documentation
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.

Versions Compared

Key

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

...

  1. Open a command prompt and navigate to the <JDK_HOME>/bin directory.
  2. Execute the jconsole command to open the log-in screen of the Java Monitoring & Management Console as shown below.
  3. Enter the connection details in the above screen as follows:
    1. 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
      titleTip

      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 and wso2server.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.

    2. 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.

  4. Click Connect to open the Java Monitoring & Management Console. The following tabs will be available:

    Localtab Group
    Localtab
    titleOverview

    See the Oracle documentation on using JConsole for more information on these tabs.

    Localtab
    titleMemory

    See the Oracle documentation on using JConsole for more information on these tabs.

    Localtab
    titleThreads

    See the Oracle documentation on using JConsole for more information on these tabs.

    Localtab
    titleClasses

    See the Oracle documentation on using JConsole for more information on these tabs.

    Localtab
    titleVM

    See the Oracle documentation on using JConsole for more information on these tabs.

    Localtab
    titleMBeans

    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.

...