JVM

Java Virtual Machine (JVM) Attributes

This document defines Java Virtual machine related attributes.

AttributeTypeDescriptionExamplesStability
jvm.buffer.pool.namestringName of the buffer pool. [1]mapped; directExperimental
jvm.gc.actionstringName of the garbage collector action. [2]end of minor GC; end of major GCStable
jvm.gc.namestringName of the garbage collector. [3]G1 Young Generation; G1 Old GenerationStable
jvm.memory.pool.namestringName of the memory pool. [4]G1 Old Gen; G1 Eden space; G1 Survivor SpaceStable
jvm.memory.typestringThe type of memory.heap; non_heapStable
jvm.thread.daemonbooleanWhether the thread is daemon or not.Stable
jvm.thread.statestringState of the thread.runnable; blockedStable

[1]: Pool names are generally obtained via BufferPoolMXBean#getName().

[2]: Garbage collector action is generally obtained via GarbageCollectionNotificationInfo#getGcAction().

[3]: Garbage collector name is generally obtained via GarbageCollectionNotificationInfo#getGcName().

[4]: Pool names are generally obtained via MemoryPoolMXBean#getName().

jvm.memory.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
heapHeap memory.Stable
non_heapNon-heap memoryStable

jvm.thread.state has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
blockedA thread that is blocked waiting for a monitor lock is in this state.Stable
newA thread that has not yet started is in this state.Stable
runnableA thread executing in the Java virtual machine is in this state.Stable
terminatedA thread that has exited is in this state.Stable
timed_waitingA thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.Stable
waitingA thread that is waiting indefinitely for another thread to perform a particular action is in this state.Stable