Sun GlassFish Enterprise Server v3 Prelude Administration Guide

Viewing Common Monitoring Data

The asadmin monitor command enables you to display basic data on commonly-monitored objects.

ProcedureTo View Common Monitoring Data

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

Output from the command 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 v3 Prelude are jvm, httplistener, and webmodule.

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


Example 10–1 Viewing Common Monitoring Data

The following example command requests common data for type jvm on instance server:


asadmin monitor --type jvm server

Information similar to the following is displayed:


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

To see the full syntax and options of the command, type asadmin monitor --help 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 10–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 10–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 

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 10–3 Web Module Common Monitoring Statistics

Statistic 

Description 

ajlc

Number of active JavaServer PagesTM (JSPTM) 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