To display monitoring statistics for an application component or subsystem for which
monitoring has been enabled, use the
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 --user adminuser --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 examples using the
get
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
get
command, refer to
“Understanding and Specifying Dotted Names” on page 195
.
Understanding and Specifying Dotted Names
In the
asadmin list
and
get
commands, specify the dotted name of monitorable objects. All
child objects are addressed using the dot (.) character as separator, thus these are referred to as
dotted names
. If a child node is of singleton type, then only the monitoring object type is needed
to address the object, otherwise a name of the form
type.name
is needed to address the object.
For example,
http-service
is one of the valid monitorable object types and is a singleton. To
address a singleton child node representing the
http-service
of instance
server
, the dotted
name is:
server.http-service
2
Viewing Monitoring Data
Chapter 18 • Monitoring Components and Services
195
Содержание Sun GlassFish Enterprise Server 2.1
Страница 12: ...12 ...
Страница 13: ...Figures FIGURE 1 1 Enterprise Server Instance 29 FIGURE 9 1 RoleMapping 105 13 ...
Страница 14: ...14 ...
Страница 18: ...18 ...
Страница 38: ...38 ...
Страница 62: ...62 ...
Страница 96: ...96 ...
Страница 126: ...126 ...
Страница 160: ...160 ...
Страница 214: ...214 ...
Страница 218: ...218 ...
Страница 230: ...230 ...