Sample Introduction
Java Management Extensions (JMX) is a technology that lets you implement management interfaces for Java applications. A management interface, as defined by JMX, is composed of named objects called MBeans (Management Beans). MBeans are registered with a name (an ObjectName) in an MBeanServer. To manage a resource or many resource in your application, write an MBean that defines its management interface. Then register that MBean in your MBeanServer. The content of the MBeanServer can then be exposed through various protocols, implemented by protocol connectors, or protocol adaptors.
...
You can change the JMX configuration by editing the jmx.xml file, which is inside <AS_HOME>/repository/conf/advancedetc 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 |
---|
<JMX> <!--The port RMI registry is exposed--> <RMIRegistryPort>9999</RMIRegistryPort> <!--The port RMI server should be exposed--> <RMIServerPort>11111</RMIServerPort> </JMX> |
...
Code Block |
---|
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
...
Application Server
Jconsole is a JMX-compliant monitoring tool. It comes with the Jave Development Kit (JDK) 1.5 and newer versions and can be found in <JDK_HOME>/bin directory. For information on installing JDK, refer to Installing JDK on Windows, Linux or Solaris.
...