Java heap, Java
Features:
- The memory area shared by the thread created when the VM is started. The memory area is allocated to all instance objects and array objects.
- Main area of GC spam Mobile Phone Manager management, GC heap
- The capacity can be fixed or dynamically expanded. The maximum size of Xmx-minimum size of Xms and initial size of Xmx is automatically reduced.
- The memory used does not need to ensure continuity, that is, physical continuity is not required, but logical continuity is required.
- When the capacity required for allocation exceeds the provided capacity, or the expansion cannot be met, an OutOfMemoryError is thrown.
Java heap divides memory according to the management mode of automatic Memory management system gc. Generally, the generation-based collection algorithm (Eden, From original vor, To original VOR) is used ).