Database Reference
In-Depth Information
F IGURE 23-2 Different memory areas of the JVM during the garbage collection process
Minor Garbage Collection
There are two kinds of GCs. One is the minor GC and the other is a full GC. In a minor GC
scenario when a new Java object D tries to enter the Eden memory area it does not have
enough memory to be allocated to this new object. This leads to memory allocation failure
in the Eden memory area and results in a minor GC. The minor GC scans the entire young
generation memory area so that unused memory can be freed up, as shown in Figure 23-3 .
Minor GC happens quickly and does not have any significant performance delays. From an
end-user perspective the minor GC process is seamless and will not be noticed at all.
Search WWH ::




Custom Search