Sun GlassFish Enterprise Server v3 Prelude Administration Guide

Comprehensive Monitoring Statistics

You can get comprehensive monitoring statistics by forming a dotted name that specifies the statistic you are looking for. For example, the following dotted name will get the cumulative number of requests for the HTTP service on virutal-server1:

server.http-service.virtual-server1.request.requestcount-count

The tables in the following sections list the statistics that are available for each monitorable object:

Applications Statistics

Applications fits into the tree of objects as shown in Applications Tree Hierarchy. Use the following dotted name pattern to get applications statistics:

server.applications.application-name.virtual-server.request.statistic

Statistics available for applications for are shown in the following table.

Table 10–7 Applications Comprehensive Statistics

Statistic 

Description 

activatedsessionstotal-count

Total number of activated sessions 

activejspsloadedcount-count

Number of currently loaded JSPs 

activeservletsloadedcount-count

Number of currently loaded servlets 

activesessionscurrent-count

Number of currently active sessions 

activesessionshigh-count

Maximum number of concurrently active sessions 

errorcount-count

Cumulative value of the error count, with error count representing the number of cases where the response code was greater than or equal to 400 

expiredsessionstotal-count

Total number of expired sessions 

maxjspsloadedcount-count

Maximum number of JSPs loaded which were active 

maxservletsloadedcount-count

Maximum number of servlets loaded which were active 

maxtime-count

Longest response time for a request; not a cumulative value, but the largest response time from among the response times 

passivatedsessionstotal-count

Total number of passivated sessions 

persistedsessionstotal-count

Total number of persisted sessions 

processingtime-count

Cumulative value of the times taken to process each request, with processing time representing the average of request processing times over the request count 

rejectedsessionstotal-count

Total number of rejected sessions 

requestcount-count

Cumulative number of the requests processed so far 

sessionstotal-count

Total number of sessions created 

totaljspsloadedcount-count

Cumulative number of JSP pages that have been loaded into the web module 

totalservletsloadedcount-count

Cumulative number of servlets that have been loaded into the web module 

HTTP Service Statistics

The HTTP service fits into the tree of objects as shown in HTTP Service Tree Hierarchy.

The HTTP service statistics are described in the following sections:

HTTP Service asadmin Statistics

Use the following dotted name pattern for the HTTP service asadmin statistics:

server.http-service._asadmin.request.statistic

The asadmin statistics available for HTTP service for are shown in the following table.

Table 10–8 HTTP Service asadmin Statistics

Statistic 

Description 

count200-count

Number of responses with a status code equal to 200 

count2xx-count

Number of responses with a status code in the 2xx range 

count302-count

Number of responses with a status code equal to 302 

count304-count

Number of responses with a status code equal to 304 

count3xx-count

Number of responses with a status code equal in the 3xx range 

count400-count

Number of responses with a status code equal to 400 

count401-count

Number of responses with a status code equal to 401 

count403-count

Number of responses with a status code equal to 403 

count4xx-count

Number of responses with a status code equal in the 4xx range 

count503-count

Number of responses with a status code equal to 503 

count5xx-count

Number of responses with a status code equal in the 5xx range 

countother-count

Number of responses with a status code outside the 2xx, 3xx, 4xx, and 5xx range 

errorcount-count

Cumulative value of the error count, with error count representing the number of cases where the response code was greater than or equal to 400 

maxtime-count

Longest response time for a request; not a cumulative value, but the largest response time from among the response times 

processingtime-count

Cumulative value of the times taken to process each request, with processing time being the average of request processing times over the request count 

requestcount-count

Cumulative number of requests processed so far 

HTTP Service Virtual Server Statistics

Use the following dotted name pattern for HTTP service virtual server statistics:

server.http-service.virtual-server.request.statistic

The HTTP service statistics for virtual servers are shown in the following table.

Table 10–9 HTTP Service Virtual Server Statistics

Statistic 

Description 

count200-count

Number of responses with a status code equal to 200 

count2xx-count

Number of responses with a status code in the 2xx range 

count302-count

Number of responses with a status code equal to 302 

count304-count

Number of responses with a status code equal to 304 

count3xx-count

Number of responses with a status code equal in the 3xx range 

count400-count

Number of responses with a status code equal to 400 

count401-count

Number of responses with a status code equal to 401 

count403-count

Number of responses with a status code equal to 403 

count404-count

Number of responses with a status code equal to 404 

count4xx-count

Number of responses with a status code equal in the 4xx range 

count503-count

Number of responses with a status code equal to 503 

count5xx-count

Number of responses with a status code equal in the 5xx range 

countother-count

Number of responses with a status code outside the 2xx, 3xx, 4xx, and 5xx range 

errorcount-count

Cumulative value of the error count, with error count representing the number of cases where the response code was greater than or equal to 400 

maxtime-count

Longest response time for a request; not a cumulative value, but the largest response time from among the response times 

processingtime-count

Cumulative value of the times taken to process each request, with processing time being the average of request processing times over the request count 

requestcount-count

Cumulative number of requests processed so far 

Java Virtual Machine (JVM) Statistics

The statistics that are available for the JVM machine are shown in the following sections:

JVM Class Loading System Statistics

Use the following dotted name pattern for JVM class loading system statistics:

server.jvm.class-loading-system.statistic

The statistics that are available for class loading in the JVM for Java SE are shown in the following table.

Table 10–10 JVM Statistics for Java SE Class Loading

Statistic 

Description 

loadedclasscount-count

Number of classes that are currently loaded in the JVM 

totalloadedclasscount-count

Total number of classes that have been loaded since the JVM began execution 

unloadedclasscount-count

Number of classes that have been unloaded from the JVM since the JVM began execution 

JVM Compilation System Statistics

Use the following dotted name pattern for JVM compilation system statistics:

server.jvm.compilation-system.statistic

The statistics that are available for compilation in the JVM for Java SE are shown in the following table.

Table 10–11 JVM Statistics for Java SE Compilation

Statistic 

Description 

name-current

Name of the current compiler 

totalcompilationtime-count

Accumulated time (in milliseconds) spent in compilation 

JVM Garbage Collectors Statistics

Use the following dotted name pattern for JVM garbage collectors statistics:

server.jvm.garbage-collectors.statistic

The statistics that are available for garbage collection in the JVM for Java SE are shown in the following table.

Table 10–12 JVM Statistics for Java SE Garbage Collectors

Statistic 

Description 

collectioncount-count

Total number of collections that have occurred 

collectiontime-count

Accumulated collection time (in milliseconds) 

JVM Memory Statistics

Use the following dotted name pattern for JVM memory statistics:

server.jvm.memory.statistic

The statistics that are available for memory in the JVM for Java SE are shown in the following table.

Table 10–13 JVM Statistics for Java SE Memory

Statistic 

Description 

committedheapsize-count

Amount of heap memory (in bytes) that is committed for the JVM to use 

committednonheapsize-count

Amount of non-heap memory (in bytes) that is committed for the JVM to use 

initheapsize-count

Size of the heap initially requested by the JVM 

initnonheapsize-count

Size of the non-heap area initially requested by the JVM 

maxheapsize-count

Maximum amount of heap memory (in bytes) that can be used for memory management 

maxnonheapsize-count

Maximum amount of non-heap memory (in bytes) that can be used for memory management 

objectpendingfinalizationcount-count

Approximate number of objects that are pending finalization 

usedheapsize-count

Size of the heap currently in use 

usednonheapsize-count

Size of the non-heap area currently in use 

JVM Operating System Statistics

Use the following dotted name pattern for JVM operating system statistics:

server.jvm.operating-system.statistic

The statistics that are available for the operating system for the JVM machine in Java SE are shown in the following table.

Table 10–14 JVM Statistics for Java SE Operating System

Statistic 

Description 

arch-current

Operating system architecture 

availableprocessors-count

Number of processors available to the JVM 

name-current

Operating system name 

version-current

Operating system version 

JVM Runtime Statistics

Use the following dotted name pattern for JVM runtime statistics:

server.jvm.runtime.statistic

The statistics that are available for the runtime in the JVM runtime for Java SE are shown in the following table.

Table 10–15 JVM Statistics for Java SE Runtime

Statistic 

Description 

classpath-current

Classpath that is used by the system class loader to search for class files 

inputarguments-current

Input arguments passed to the JVM; not including arguments to the main method

managementspecversion-current

Management specification version implemented by the JVM 

name-current

Name representing the running JVM 

specname-current

JVM specification name 

specvendor-current

JVM specification vendor 

specversion-current

JVM specification version 

uptime-count

Uptime of the JVM (in milliseconds) 

vmname-current

JVM implementation name 

vmvendor-current

JVM implementation vendor 

vmversion-current

JVM implementation version 

Web Statistics

The web container fits into the tree of objects as shown in Web Tree Hierarchy.

The available web statistics shown in the following sections:

Web JSP Statistics

Use the following dotted name pattern for web JSP statistics:

server.web.jsp.statistic

The available web JSP statistics are shown in the following table.

Table 10–16 Web JSP Statistics

Statistic 

Description 

activejspsloadedcount-count

Number of currently loaded JSPs 

maxjspsloadedcount-count

Maximum number of JSPs loaded which were active 

totaljspsloadedcount-count

Cumulative number of JSP pages that have been loaded into the web module 

Web Request Statistics

Use the following dotted name pattern for web request statistics:

server.web.request.statistic

The available web request statistics are shown in the following table.

Table 10–17 Web Request Statistics

Statistic 

Description 

errorcount-count

Cumulative value of the error count, with error count representing the number of cases where the response code was greater than or equal to 400 

maxtime-count

Longest response time for a request; not a cumulative value, but the largest response time from among the response times 

processingtime-count

Cumulative value of the times taken to process each request, with processing time being the average of request processing times over the request count 

requestcount-count

Cumulative number of the requests processed so far 

Web Servlet Statistics

Use the following dotted name pattern for web servlet statistics:

server.web.servlet.statistic

The available web servlet statistics are shown in the following table.

Table 10–18 Web Servlet Statistics

Statistic 

Description 

activeservletsloadedcount-count

Number of currently loaded servlets 

maxservletsloadedcount-count

Maximum number of servlets loaded which were active 

totalservletsloadedcount-count

Cumulative number of servlets that have been loaded into the web module 

Web Session Statistics

Use the following dotted name pattern for web session statistics:

server.web.session.statistic

The available web session statistics are shown in the following table.

Table 10–19 Web Session Statistics

Statistic 

Description 

activatedsessionstotal-count

Total number of activated sessions 

activesessionscurrent-count

Number of currently active sessions 

activesessionshigh-count

Maximum number of concurrently active sessions 

expiredsessionstotal-count

Total number of expired sessions 

passivatedsessionstotal-count

Total number of passivated sessions 

persistedsessionstotal-count

Total number of persisted sessions 

rejectedsessionstotal-count

Total number of rejected sessions 

sessionstotal-count

Total number of sessions created