Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Each object in Java heap has a header which is used by Garbage Collection (GC) algorithm. The young space collector (which is responsible for object promotion) uses a few bit(s) from this header to track the number of collections object that have survived (32-bit JVM use 4 bits for this, 64-bit probably some more).</p> <p>During young space collection, every single object is copied. The Object may be copied to one of survival spaces (one which is empty before young GC) or to the old space. For each object being copied, GC algorithm increases it's age (number of collection survived) and if the age is above the current <strong>tenuring threshold</strong> it would be copied (promoted) to old space. The Object could also be copied to the old space directly if the survival space gets full (overflow).</p> <p>The journey of Object has the following pattern:</p> <ul> <li>allocated in eden</li> <li>copied from eden to survival space due to young GC</li> <li>copied from survival to (other) survival space due to young GC (this could happen few times)</li> <li>promoted from survival (or possible eden) to old space due to young GC (or full GC)</li> </ul> <p>the actual <strong>tenuring threshold</strong> is dynamically adjusted by JVM, but MaxTenuringThreshold sets an upper limit on it.</p> <p>If you set MaxTenuringThreshold=0, all objects will be promoted immediately.</p> <p>I have <a href="http://blog.ragozin.info/p/garbage-collection.html">few articles</a> about java garbage collection, there you can find more details.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload