Hitachi

uCosminexus Application Server System Design Guide


7.15.8 Young GC

Figure 7‒28: Flow of young GC

[Figure]

Organization of this subsection

(1) Triggers

  1. Young GC (normal)

    Young GC (normal) occurs when there is not enough space for an object in the Eden area. It also occurs when the Humongous area does not have enough space to accommodate a large object.

  2. Young GC (initial-mark)

    If the used size of the Tenured area exceeds 45% of the Java heap area when young GC (normal) finishes, young GC (initial-mark) is executed when the trigger in 1. is satisfied. When securing the space for a large object, if the total of the used size of the Tenured area and the size of the object exceeds 45% of the Java heap area, then young GC (initial-mark) is executed.

(2) Target

New area

(3) Processing

(4) Processing results

Eden area: The objects are collected and the area is left empty. The Eden area is resized after GC has completed.

Survivor area: The objects in the From space are collected and the space is left empty. The Survivor area is resized after GC has completed.

Tenured area: Objects determined to have long-term utility are moved to the Tenured area.

Humongous area: Unchanged.

Metaspace area: Unchanged.

Free area: The Free area increases or decreases in size as a result of the resizing that occurs after GC.

(5) Pausing of applications

Applications are paused.

(6) Relationship with other GC methods

CM: Not executed during young GC.

Mixed GC: Not executed during young GC.

Full GC: If the requirements for Full GC are met while young GC is in progress, young GC is canceled and Full GC is executed.

(7) Supplementary notes

In the preceding log file entry, the size of the New area before GC is 389120K + 41984K = 431104K, and the size of the New area after GC is 397312K + 41984K = 439296K. This shows that the New area has been extended. For details about how to interpret this information, see -XX:[+|-]HitachiVerboseGC (Option for extended verbosegc information output) in the uCosminexus Application Server Definition Reference Guide.