Sun GlassFish Enterprise Server v3 Prelude Administration Guide

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.