Oracle GlassFish Server 3.0.1 Administration Guide

Viewing Common Monitoring Data

Use the monitor subcommand to display basic data on commonly-monitored objects.

ProcedureTo View Common Monitoring Data

Use the --type option of the monitor subcommand to specify the object for which you want to display data, such as httplistener, jvm, webmodule. If you use the monitor subcommand without specifying a type, an error message is displayed.

Output from the subcommand is displayed continuously in a tabular format. The --interval option can be used to display output at a particular interval (the default is 30 seconds).

Before You Begin

A monitorable object must be configured for monitoring before you can display data on the object. See To Enable Monitoring.

  1. Determine which type of monitorable object you want to monitor.

    Your choices for 3.0.1 are jvm, httplistener, and webmodule.

  2. Request the monitoring data by using the monitor(1) subcommand.


Example 8–7 Viewing Common Monitoring Data

This example requests common data for type jvm on instance server.


asadmin> monitor --type jvm server

UpTime(ms)                          Heap and NonHeap Memory(bytes)
current                   min        max        low        high       count

9437266                   8585216    619642880  0          0          93093888
9467250                   8585216    619642880  0          0          93093888

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help monitor at the command line.

Common Monitoring Statistics

Common monitoring statistics are described in the following sections:

HTTP Listener Common Statistics

The statistics available for the httplistener type are shown in the following table.

Table 8–1 HTTP Listener Common Monitoring Statistics

Statistic 

Description 

ec

Error count. Cumulative value of the error count 

mt

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

pt

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

rc

Request count. Cumulative number of requests processed so far 

JVM Common Statistics

The statistics available for the jvm type are shown in the following table.

Table 8–2 JVM Common Monitoring Statistics

Statistic 

Description 

count

Amount of memory (in bytes) that is guaranteed to be available for use by the JVM machine 

high

Retained for compatibility with other releases 

low

Retained for compatibility with other releases 

max

The maximum amount of memory that can be used for memory management. 

min

Initial amount of memory (in bytes) that the JVM machine requests from the operating system for memory management during startup 

UpTime

Number of milliseconds that the JVM machine has been running since it was last started 

Web Module Common Statistics

The statistics available for the webmodule type are shown in the following table.

Table 8–3 Web Module Common Monitoring Statistics

Statistic 

Description 

ajlc

Number of active JavaServer Pages (JSP) technology pages that are loaded 

asc

Current active sessions 

aslc

Number of active servlets that are loaded 

ast

Total active sessions 

mjlc

Maximum number of JSP pages that are loaded 

mslc

Maximum number of servlets that are loaded 

rst

Total rejected sessions 

st

Total sessions 

tjlc

Total number of JSP pages that are loaded 

tslc

Total number of servlets that are loaded