Java Memory Concepts: Difference between revisions

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


=Heap=
=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_Monitoring_and_Managemen_Platform_MBeans#Memory_MBean|Memory MBean]], which can be obtained from the [[JMX#The_Platform_MBean_Server|platform MBean server]].
Metrics reflecting heap usage are exposed by the [[Memory_Monitoring_and_Managemen_Platform_MBeans#Memory_MBean|Memory MBean]], which can be obtained from the [[JMX#The_Platform_MBean_Server|platform MBean server]].

Revision as of 17:46, 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