Example usage for Java java.lang.management MemoryMXBean fields, constructors, methods, implement or subclass
The text is from its open source code.
void | gc() Runs the garbage collector. |
MemoryUsage | getHeapMemoryUsage() Returns the current memory usage of the heap that is used for object allocation. |
MemoryUsage | getNonHeapMemoryUsage() Returns the current memory usage of non-heap memory that is used by the Java virtual machine. |
int | getObjectPendingFinalizationCount() Returns the approximate number of objects for which finalization is pending. |
void | setVerbose(boolean value) Enables or disables verbose output for the memory system. |