Understanding Heap Memory in a Minute

The role of heap memory: objects generated during the operation of the object program will be stored in the heap memory.

What is contained in heap memory: young generation, old generation

The new generation includes: Eden (Eden), From Survivor, To Survivor area.

Ratio: Cenozoic: Old age 1:2, the respective ratios of Eden, From Survivor, To Survivor in the Cenozoic: 8:1:1

Each time the JVM uses Eden and one of the Survivors to store objects. That is, From Survivor and To Survivor will only use one at a time, and there will always be one free.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343575&siteId=291194637