Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 4.77 KB

File metadata and controls

44 lines (32 loc) · 4.77 KB

JVM

Jvm Attributes

This document defines Java Virtual machine related attributes.

Attribute Type Description Examples Stability
jvm.gc.action string Name of the garbage collector action. [1] end of minor GC; end of major GC Stable
jvm.gc.name string Name of the garbage collector. [2] G1 Young Generation; G1 Old Generation Stable
jvm.memory.pool.name string Name of the memory pool. [3] G1 Old Gen; G1 Eden space; G1 Survivor Space Stable
jvm.memory.type string The type of memory. heap; non_heap Stable
jvm.thread.daemon boolean Whether the thread is daemon or not. Stable
jvm.thread.state string State of the thread. new; runnable; blocked Stable

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

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

[3]: 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.

Value Description Stability
heap Heap memory. Stable
non_heap Non-heap memory Stable

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.

Value Description Stability
new A thread that has not yet started is in this state. Stable
runnable A thread executing in the Java virtual machine is in this state. Stable
blocked A thread that is blocked waiting for a monitor lock is in this state. Stable
waiting A thread that is waiting indefinitely for another thread to perform a particular action is in this state. Stable
timed_waiting A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state. Stable
terminated A thread that has exited is in this state. Stable