Versions Compared

Key

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

...

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 WSO2 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

...

Click on the "MBeans" tab to see the "org.wso2.carbon" domain, which contains some MBeans as follows:

The ServerAdmin MBean

The ServerAdmin MBean is used for administering the Application Server instance.

...

  • shutdown - forcefully shutdown the server
  • restart - forcefully restart the server
  • restartGracefully - wait till all current requests are served and then restart
  • shutdownGracefully - wait till all current requests are served and then shutdown
  • startMaintenance - switch the server to maintenance mode. No new requests will be accepted while the server is in maintenance
  • endMaintenance - switch the server to normal mode, if it was switched to maintenance mode earlier.

 

The ServiceAdmin MBean

The ServiceAdmin MBean is used for administering services deployed in the Application Server. Its attributes are as follows:

...

  • startService(p1:string) - The p1 parameter is the service name. You can activate a service using this operation.
  • stopService(p1:string) - The p1 parameter is the service name. You can deactivate/disable a service using this operation.

The Statistics MBean

The Statistics MBean is used for monitoring system and server statistics. Its attributes are as follows:

...