What is the difference between Minor Gc and Full GC
This article mainly explains "what are the differences between Minor Gc and Full GC". Interested friends might as well take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the differences between Minor Gc and Full GC"?
In most cases, objects are allocated in the eden area of the Cenozoic era. When there is not enough space in the eden zone to allocate, the virtual machine will initiate a Minor GC.
New generation GC (Minor GC): refers to the occurrence of a new generation of garbage collection, Minor GC is very frequent, the recovery speed is generally relatively fast.
Old GC (Major GC/Full GC): refers to the GC that occurs in the old years, when Major GC is often accompanied by Minor GC at least once (not absolutely). The speed of Major GC is generally more than 10 times slower than that of Minor GC.
At this point, I believe you have a deeper understanding of "what's the difference between Minor Gc and Full GC". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!