Sun Microsystems GLASSFISH ENTERPRISE 820433510 User Manual
Page 194

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 --type jvm --user adminuser server
JVM Monitoring
UpTime(ms)
HeapSize(bytes)
current
min
max
low
high
count
327142979
0
531628032
0
45940736
45940736
To view monitoring data and send the output to a CSV file, use the filename option. For
example:
asadmin> monitor --type jvm --filename myoutputfile --user adminuser server
▼
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.
To 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 --user adminuser --monitor server
The preceding command returns a list of application components and subsystems that have
monitoring enabled, for example:
server.resources
server.connector-service
server.orb
server.jms-service
server.jvm
server.applications
server.http-service
server.sip-service
server.thread-pools
For further examples using the list command, refer to
. For further information on the dotted names you can use with the
list
command, refer to
“Understanding and Specifying Dotted Names” on page 195
2
1
Viewing Monitoring Data
Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008
194