To view monitoring data using the asadmin
tool, use the asadmin
list
and asadmin
get
commands followed by the dotted name of a monitorable object. As a general approach to using the asadmin
tool to view monitoring data, follow these steps:
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 --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.thread-pools
For further information using the list
command, refer to the Monitoring Components and Services chapter in the Sun Java System Application Server Platform Edition 8.1 2005Q1Sun Java System Application Server Enterprise Edition 8.1 2005Q1 Administration Guide (For the guide’s URL, see "Further Information".)
asadmin
get
command. To get the statistics, type the asadmin
get
command in a terminal window, specifying a name displayed by the list
command in the preceding step. The following example attempts to get all attributes from a subsystem for a specific object:
asadmin> get --monitor server.jvm.*
The command returns the following attributes and data:
server.jvm.dotted-name = server.jvm
server.jvm.heapsize-current = 21241856
server.jvm.heapsize-description = Provides statistical information
about the JVM's memory heap size.
server.jvm.heapsize-highwatermark = 21241856
server.jvm.heapsize-lastsampletime = 1080232913938
server.jvm.heapsize-lowerbound = 0
server.jvm.heapsize-lowwatermark = 0
server.jvm.heapsize-name = JvmHeapSize
server.jvm.heapsize-starttime = 1080234457308
server.jvm.heapsize-unit = bytes
server.jvm.heapsize-upperbound = 518979584
server.jvm.uptime-count = 1080234457308
server.jvm.uptime-description = Provides the amount of time the JVM has
been running.
server.jvm.uptime-lastsampletime = 1080234457308
server.jvm.uptime-name = JvmUpTime
server.jvm.uptime-starttime = 1080232913928
server.jvm.uptime-unit = milliseconds
For further information using the get
command, refer to the Monitoring Components and Services chapter in the Sun Java System Application Server Platform Edition 8.1 2005Q1Sun Java System Application Server Enterprise Edition 8.1 2005Q1 Administration Guide (For the guide’s URL, see "Further Information".)
See Also: