servlet,connection,connectorpool,endpoint,entitybean,messagedriven,
statefulsession,statelesssession,httpservice,orwebmodule.
Forexample, to view data for jvm onserver, 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
Toviewmonitoring data and send the output to a CSV le, use the lename option. For
example:
asadmin> monitor --type jvm --filename myoutputfile --user adminuser server
ToUse the asadmin get and list Commands toView Monitoring Data
Themonitor command is useful in most situations. However, it does not oer the complete list
ofall monitorable objects. To view all monitorable data using the asadmin tool,use the asadmin
listand asadmin getcommands followed by the dotted name of a monitorable object, as
follows.
Toview the names of the objects that can be monitored, use the asadmin listcommand.
Forexample, to view a list of application components and subsystems that have monitoring
enablefor the server instance, type the following command in a terminal window:
asadmin> list --user adminuser --monitor server
Thepreceding command returns a list of application components and subsystems that have
monitoringenabled, 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
Forfurther 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
listcommand, refer to “Understanding and Specifying Dotted Names” on page 195.
2
1
ViewingMonitoringData
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008194