Sun GlassFish Enterprise Server v3 Prelude Administration Guide

Java Virtual Machine (JVM) Statistics

The statistics that are available for the JVM machine are shown in the following sections:

JVM Class Loading System Statistics

Use the following dotted name pattern for JVM class loading system statistics:

server.jvm.class-loading-system.statistic

The statistics that are available for class loading in the JVM for Java SE are shown in the following table.

Table 10–10 JVM Statistics for Java SE Class Loading

Statistic 

Description 

loadedclasscount-count

Number of classes that are currently loaded in the JVM 

totalloadedclasscount-count

Total number of classes that have been loaded since the JVM began execution 

unloadedclasscount-count

Number of classes that have been unloaded from the JVM since the JVM began execution 

JVM Compilation System Statistics

Use the following dotted name pattern for JVM compilation system statistics:

server.jvm.compilation-system.statistic

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

Table 10–11 JVM Statistics for Java SE Compilation

Statistic 

Description 

name-current

Name of the current compiler 

totalcompilationtime-count

Accumulated time (in milliseconds) spent in compilation 

JVM Garbage Collectors Statistics

Use the following dotted name pattern for JVM garbage collectors statistics:

server.jvm.garbage-collectors.statistic

The statistics that are available for garbage collection in the JVM for Java SE are shown in the following table.

Table 10–12 JVM Statistics for Java SE Garbage Collectors

Statistic 

Description 

collectioncount-count

Total number of collections that have occurred 

collectiontime-count

Accumulated collection time (in milliseconds) 

JVM Memory Statistics

Use the following dotted name pattern for JVM memory statistics:

server.jvm.memory.statistic

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

Table 10–13 JVM Statistics for Java SE Memory

Statistic 

Description 

committedheapsize-count

Amount of heap memory (in bytes) that is committed for the JVM to use 

committednonheapsize-count

Amount of non-heap memory (in bytes) that is committed for the JVM to use 

initheapsize-count

Size of the heap initially requested by the JVM 

initnonheapsize-count

Size of the non-heap area initially requested by the JVM 

maxheapsize-count

Maximum amount of heap memory (in bytes) that can be used for memory management 

maxnonheapsize-count

Maximum amount of non-heap memory (in bytes) that can be used for memory management 

objectpendingfinalizationcount-count

Approximate number of objects that are pending finalization 

usedheapsize-count

Size of the heap currently in use 

usednonheapsize-count

Size of the non-heap area currently in use 

JVM Operating System Statistics

Use the following dotted name pattern for JVM operating system statistics:

server.jvm.operating-system.statistic

The statistics that are available for the operating system for the JVM machine in Java SE are shown in the following table.

Table 10–14 JVM Statistics for Java SE Operating System

Statistic 

Description 

arch-current

Operating system architecture 

availableprocessors-count

Number of processors available to the JVM 

name-current

Operating system name 

version-current

Operating system version 

JVM Runtime Statistics

Use the following dotted name pattern for JVM runtime statistics:

server.jvm.runtime.statistic

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

Table 10–15 JVM Statistics for Java SE Runtime

Statistic 

Description 

classpath-current

Classpath that is used by the system class loader to search for class files 

inputarguments-current

Input arguments passed to the JVM; not including arguments to the main method

managementspecversion-current

Management specification version implemented by the JVM 

name-current

Name representing the running JVM 

specname-current

JVM specification name 

specvendor-current

JVM specification vendor 

specversion-current

JVM specification version 

uptime-count

Uptime of the JVM (in milliseconds) 

vmname-current

JVM implementation name 

vmvendor-current

JVM implementation vendor 

vmversion-current

JVM implementation version