MemoryMXBean is an interface used by the management system to access memory-related properties.
MemoryMXBean
ObjectName: java.lang:type=Memory
ObjectName
Invokes the JVM's garbage collector; equivalent to System.gc .
The current memory usage for the heap; memory used for object allocation.
The current memory usage outside of the heap.
The approximate number of objects that are about to be finalized.
Indicates whether or not the verbose output is enabled for the memory system.
Enables or disables the verbose output of the memory system.
true
false
ManagementPermission("control")