1. Is the heap of memory divided into young generation and old generation!!!
2. Is the heap of memory divided into young generation and old generation!!!
3. Is the heap of memory divided into young generation and old generation!!!
4.
1) in young generation, there is a space in the Eden space, mainly for the newborn objects, and two survivor Spaces (from, to), they are always the same size, they are used to store each garbage collection survived after the object.
2) in the old generation, the memory objects that have long life cycles in the application are primarily stored.
3) in young generation block, garbage collection is generally used copying algorithm, fast. At each GC, the surviving objects are first copied from Eden to a survivorspace, and when the survivor space is full, the remaining live objects are copied directly to Oldgeneration. Therefore, after each GC, the Eden memory block is emptied.
4) in the old generation block, garbage collection generally uses the mark-compact algorithm, slower, but reduces memory requirements.
5) Garbage collection sub-level, 0 level for all (full) garbage collection, the old section of garbage collection, 1 or more of the garbage collection, will only recover the garbage in young, memory overflow usually occurs after the old or perm segment garbage collection, There is still no memory space to accommodate new Java objects.
This article turns from http://blog.csdn.net/ithomer/article/details/6252552 thanks to the author
Is the heap of memory divided into young generation and old generation!!!