Viewing Monitoring Data
servlet, connection, connectorpool, endpoint, entitybean, messagedriven, statefulsession, statelesssession, httpservice, or webmodule.
For example, to view data for jvm on server, enter the following:
asadmin>monitor |
|
| |||
|
| JVM Monitoring |
|
|
|
UpTime(ms) |
|
| HeapSize(bytes) |
| |
current | min | max | low | high | count |
327142979 | 0 | 531628032 | 0 | 45940736 | 45940736 |
2To view monitoring data and send the output to a CSV file, use the filename option. For example:
asadmin> monitor
▼To Use the asadmin get and list Commands to View Monitoring Data
The monitor command is useful in most situations. However, it does not offer the complete list of all monitorable objects. To view all monitorable data using the asadmin tool, use the asadmin list and asadmin get commands followed by the dotted name of a monitorable object, as follows.
1To view the names of the objects that can be monitored, use the asadmin list command.
For example, to view a list of application components and subsystems that have monitoring enable for the server instance, type the following command in a terminal window:
asadmin> list
The preceding command returns a list of application components and subsystems that have monitoring enabled, for example:
server.resources
For further examples using the list command, refer to “Examples of the list and get Commands” on page 196. For further information on the dotted names you can use with the list command, refer to “Understanding and Specifying Dotted Names” on page 195.
194 | Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008 |