Java Memory Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:


=Memory Pool=
=Memory Pool=
=Garbage Collector=

Revision as of 17:47, 9 May 2017

Internal

Heap

The heap is the runtime data area in the JVM where all class instances and arrays are allocated. The heap is allocated when the JVM starts. The objects that are no longer in use are automatically reclaimed by a garbage collector.

Metrics reflecting heap usage are exposed by the Memory MBean, which can be obtained from the platform MBean server.

Non-Heap Memory

Memory Manager

Memory Pool

Garbage Collector