Java virtual machine counters
The Java virtual machine (JVM) counters are used to monitor JVM performance. Except for the counters used for total, used, and free heap size, one can find the counters by using the Java virtual machine Profiler Interface (JVMPI). To use JVMPI, turn on the monitoring by setting the -XrunpmiJvmpiProfiler command line. See Enabling the Java Virtual Machine Profiler Interface data .
Counter definitions
Name Key Description Version Granularity Type Level FreeMemory jvmRuntimeModule.freeMemory The free memory in the JVM run time 3.5.5 and later Per Java Virtual Machine (JVM) CountStatistic Low UsedMemory jvmRuntimeModule.usedMemory The used memory in the JVM run time 3.5.5 and later Per JVM CountStatistic Low HeapSize jvmRuntimeModule.totalMemory The total memory in the JVM run time 3.5.5 and later Per JVM BoundedRangeStatistic. The upperBound and lowerBound are not implemented for the Total memory counter. High UpTime jvmRuntimeModule.upTime The amount of time that the JVM is running 5.0 Per JVM CountStatistic Low GCCount jvmRuntimeModule.numGcCalls The number of garbage collection calls. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max GCIntervalTime jvmRuntimeModule.avgTimeBetweenGcCalls The average garbage collection value in seconds between two garbage collections. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM TimeStatistic Max GCTime jvmRuntimeModule.avgGcDuration The average duration of a garbage collection. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM TimeStatistic Max WaitsForLockCount jvmRuntimeModule.numWaitsForLock The number of times that a thread waits for a lock. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max WaitForLockTime jvmRuntimeModule.avgTimeWaitForLock The average time that a thread waits for a lock. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM TimeStatistic Max ObjectAllocateCount jvmRuntimeModule.numObjectsAllocated The number of objects that are allocated in the heap. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max ObjectMovedCount jvmRuntimeModule.numObjectsMoved The number of objects in the heap. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max ObjectFreedCount jvmRuntimeModule.numObjectsFreed The number of objects freed in the heap. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max ThreadStartedCount jvmRuntimeModule.numThreadsStarted The number of threads started. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max ThreadEndedCount jvmRuntimeModule.numThreadsDead The number of failed threads. This counter is not available unless the -XrunpmiJvmpiProfiler option is set when starting the JVM. 4.0 and later Per JVM CountStatistic Max
Related Tasks
Enabling the Java Virtual Machine Profiler Interface data