About Monitoring

TABLE 18–22JVM Statistics for Java SE - Runtime

(Continued)

Statistic

Data Type

 

Description

 

 

 

managementspecversion

StringStatistic

Management spec. version implemented

 

 

 

by the JVM.

 

 

 

classpath

StringStatistic

Classpath that is used by the system class

 

 

 

loader to search for class files.

 

 

 

librarypath

StringStatistic

Java library path.

 

 

 

bootclasspath

StringStatistic

Classpath that is used by the bootstrap

 

 

 

class loader to search for class files.

 

 

 

inputarguments

StringStatistic

Input arguments passed to the JVM. Does

 

 

 

not include the arguments to the main

 

 

 

method.

 

 

 

uptime

CountStatistic

Uptime of the JVM (in milliseconds).

 

 

 

 

The statistics available for ThreadInfo in the JVM in Java SE are shown in the following table.

TABLE 18–23JVM Statistics for Java SE - Thread Info

Statistic

Data Type

Description

 

 

 

threadid

CountStatistic

ID of the thread.

 

 

 

threadname

StringStatistic

Name of the thread.

 

 

 

threadstate

StringStatistic

State of the thread.

 

 

 

blockedtime

CountStatistic

Time elapsed (in milliseconds) since the

 

 

thread entered the BLOCKED state. Returns

 

 

-1 if thread contention monitoring is

 

 

disabled.

 

 

 

blockedcount

CountStatistic

Total number of times that the thread

 

 

entered the BLOCKED state.

 

 

 

waitedtime

CountStatistic

Elapsed time (in milliseconds) that the

 

 

thread has been in a WAITING state.

 

 

Returns -1 if thread contention

 

 

monitoring is disabled.

 

 

 

waitedcount

CountStatistic

Total number of times the thread was in

 

 

WAITING or TIMED_WAITING states.

 

 

 

lockname

StringStatistic

String representation of the monitor lock

 

 

that the thread is blocked to enter or

 

 

waiting to be notified through the

 

 

Object.wait method.

 

 

 

190

Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008

Page 190
Image 190
Sun Microsystems 820433510 manual 23JVM Statistics for Java SE Thread Info