March 2019
Intermediate to advanced
242 pages
6h 21m
English
An additional enhancement to G1 GC—to return the Java heap memory to the Operating System (OS) when idle. This enhancement is most likely to be triggered by the increase in container environments that are used to run applications on the JVM.
Prior to Java 12, G1 returned memory from the Java heap in two cases—while performing a full GC or during a concurrent cycle. However, neither of these instances happen very often. In fact, G1 performs a full GC as its last resort to free up memory. A concurrent cycle is subjected to the Java heap allocation and occupancy.
This GC behavior has multiple disadvantages—organizations pay more for the memory even though it isn't used in an efficient manner in ...
Read now
Unlock full access