final class VMMemoryMXBeanImpl extends Object
Constructor and Description |
---|
VMMemoryMXBeanImpl() |
Modifier and Type | Method and Description |
---|---|
(package private) static MemoryUsage |
getHeapMemoryUsage()
Return the sum of the usage in all heap-based
pools.
|
(package private) static MemoryUsage |
getNonHeapMemoryUsage()
Return the sum of the usage in all non-heap-based
pools.
|
(package private) static int |
getObjectPendingFinalizationCount()
Return the number of objects waiting for finalization.
|
private static MemoryUsage |
getUsage(boolean immortal)
Totals the memory usage from all the pools that are either
mortal or immortal.
|
(package private) static boolean |
isVerbose()
Returns true if some level of verbosity is on.
|
(package private) static void |
setVerbose(boolean verbose)
Turns on or off verbosity.
|
VMMemoryMXBeanImpl()
static MemoryUsage getHeapMemoryUsage()
static MemoryUsage getNonHeapMemoryUsage()
static int getObjectPendingFinalizationCount()
static boolean isVerbose()
true
if verbosity is greater than 0.static void setVerbose(boolean verbose)
verbose
- the new verbosity setting.private static MemoryUsage getUsage(boolean immortal)
Non-heap pools are immortal, heap pools are non-immortal.
immortal
- true if the spaces counted should be immortal.