Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Java Management Extensions (JMX) is a technology that lets you implement management interfaces for Java applications. JConsole is a JMX-compliant monitoring tool, which comes with the Java Development Kit (JDK) 1.5 or later versions. Therefore, when you use a WSO2 product, JMX is enabled by default, which allows you to monitor the product using JConsole. When you start JConsole, the MBeans tab will show the MBeans generated for your product. While some of these MBeans (ServerAdmin and DataSource) are common to all WSO2 products, some MBeans are specific to WSO2 AS. 

Go to the WSO2 administration guide for detailed instructions on how to configure JMX for a WSO2 product, how to use JConsole for monitoring a product and for descriptions of the common MBeans used by all WSO2 products. 

 Listed below are the MBeans that are specific to WSO2 AS.

ServiceAdmin MBean

This MBean is used for administering services deployed in WSO2 AS. Its attributes are as follows:

AttributeDescription
NumberOfActiveServicesThe number of services which can currently serve requests.
NumberOfInactiveServicesThe number of services which have been disabled by an administrator.

NumberOfFaultyServices

The number of services which are faulty.

The operations available in the ServiceAdmin MBean:

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

Statistics MBean

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

AttributesDescription
AvgSystemResponseTimeThe average response time for all the services deployed in the system. The beginning of the measurement is the time at which the server started.
MaxSystemResponseTimeThe maximum response time for all the services deployed in the system. The beginning of the measurement is the time at which the server started.
MinSystemResponseTimeThe minimum time for all the services deployed in the system. The beginning of the measurement is the time at which the server started.
SystemFaultCount The total number of faults that occurred in the system since the server was started.
SystemRequestCountThe total number of requests that has been served by the system since the server was started.
SystemResponseCountThe total number of response that has been sent by the system since the server was started.

Operations available in the Statistics MBean:

OperationDescription
getServiceRequestCount(p1:string)The p1 parameter is the service name. You can get the total number of requests received by this service since the time it was deployed, using this operation.
getServiceResponseCount(p1:string)The p1 parameter is the service name. You can get the total number of responses sent by this service since the time it was deployed, using this operation.
getServiceFaultCount(p1:string)The p1 parameter is the service name. You can get the total number of fault responses sent by this service since the time it was deployed, using this operation.
getMaxServiceResponseTime(p1:string)The p1 parameter is the service name. You can get the maximum response time of this service since deployment.
getMinServiceResponseTime(p1:string)The p1 parameter is the service name. You can get the minimum response time of this service since deployment.
getAvgServiceResponseTime(p1:string)The p1 parameter is the service name. You can get the average response time of this service since deployment.
getOperationRequestCount(p1:stringp2:string)The p1 parameter is the service name. The p2 parameter is the operation name. You can get the total number of requests received by this operation since the time its service was deployed, using this operation.
getOperationResponseCount(p1:stringp2:string)The p1 parameter is the service name. The p2 parameter is the operation name. You can get the total number of responses sent by this operation since the time its service was deployed, using this operation.
getOperationFaultCount(p1:stringp2:string)The p1 parameter is the service name. The p2 parameter is the operation name. You can get the total number of fault responses sent by this operation since the time its service was deployed, using this operation.
getMaxOperationResponseTime(p1:stringp2:string)The p1 parameter is the service name. The p2 parameter is the operation name. You can get the maximum response time of this operation since deployment.
getMinOperationResponseTime(p1:stringp2:string)The p1 parameter is the service name. The p2 parameter is the operation name. You can get the minimum response time of this operation since deployment.
getAvgOperationResponseTime(p1:stringp2:string)The p1 parameter is the service name. The p2 parameter is the operation name. You can get the average response time of this operation since deployment.

  • No labels