Skip to content
Advertisement

Definition of Java’s CMS GC log lines?

Examining a Java runtime with CMS (Concurrent-Mark-Sweep) GC enabled, what is the definition of the CMS space in the logs below? Shall I assume it is the tenured space? I see the following lines of a minor-major-minor GC event

JavaScript

In particular the [CMS: 10899K->9379K(12448K), 0.2675281 secs] at the 23.492 event. Does this display the tenured space just labeled as CMS? Is CMS only performed on tenured?

Advertisement

Answer

(Disclaimer: not a JVM memory expert 😉

If I believe Understanding CMS GC Logs, this kind of log shows a drop in the CMS generation space occupancy, which is about tenured generation space.

It may be linked with Occupancy Fraction, which plays a critical role in controlling things happen in old generation.

Having a lower bound on this value allows the CMS to run frequently and keep the old generation in check all the time.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement