Versions Compared

Key

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

...

You can change the JMX configuration by editing the jmx.xml file, which is inside <BPS_HOME>/repository/conf/advanced directory. You can configure JMX ports, RMIRegistryPort and RMIServerPort from the "Ports" section of the carbon.xml, which is in <AS_HOME>/repository/conf directory.

 

Code Block
languagehtml/xml
<JMX>
     <!--The port RMI registry is exposed-->
     <RMIRegistryPort>9999</RMIRegistryPort>
     <!--The port RMI server should be exposed-->
     <RMIServerPort>11111</RMIServerPort>
</JMX>

 

If JMX is enabled, when the server starts up, it will print the JMX Server URL on the console as follows.

 

Code Block
languagehtml/xml
INFO {org.wso2.carbon.core.init.CarbonServerManager} -  JMX Service URL  : service:jmx:rmi://<your-ip>:11111/jndi/rmi://<your-ip>:9999/jmxrmi

 

Using 'jconsole' to Manage and Monitor the WSO2 Application Server

...

Once the console is opened, you can connect to Carbon by providing the following URL as the Remote Process URL. You can type in the default username and password combination admin/admin to login. Note that this is the same administrator account that is used to log into the Application Server's the Management Console. Any user having the admin role can login to JMX.

Image RemovedImage Added

The "Jave Monitoring & Management Console" opens. The first window you see looks similar to the following:

Image RemovedImage Added