Returns a list of MemoryPoolMXBean objects in the Java virtual machine. The Java virtual machine can have one or more memory pools. It may add or remove memory pools during execution.
MemoryPoolMXBean
Returns: a list of MemoryPoolMXBean objects.
Diagram: ManagementFactory