public final class MemoryPools
extends java.lang.Object
Example usage:
new MemoryPools().exportAll();
Example metrics being exported: Component
runtime.jvm.memory.area{type="used",area="heap"} 2000000 runtime.jvm.memory.area{type="committed",area="nonheap"} 200000 runtime.jvm.memory.area{type="used",pool="PS Eden Space"} 2000
Constructor and Description |
---|
MemoryPools()
Constructs a new module that will export metrics in the "runtime.jvm.memory" namespace.
|
Modifier and Type | Method and Description |
---|---|
void |
exportAll()
Export all metrics generated by this module.
|
void |
exportMemoryAreaMetric()
Export only the "area" metric.
|
void |
exportMemoryPoolMetric()
Export only the "pool" metric.
|