Object Promotion in Java: How Objects Reach Old Gen
Follow one object from Eden to Old Gen. Object promotion in Java hinges on an age table, not MaxTenuringThreshold, and survivor overflow can change it.
Follow one object from Eden to Old Gen. Object promotion in Java hinges on an age table, not MaxTenuringThreshold, and survivor overflow can change it.
Heap is 4 GB, the process uses 7 GB. Where JVM native memory goes (stacks, direct buffers, code cache, Metaspace) and how NMT baseline and diff find it.
What's in a Java object header? Mark word, class pointer and padding, measured with Unsafe on JDK 21, plus what compact headers change in JDK 25.
Java heap size in a container isn't what -Xmx says. How the JVM derives it from the cgroup limit, why 75% heaps still get OOMKilled, and how to budget the rest.