Tuning Concurrent Mark Sweep (CMS)

CMS is a generational low-pause collector recommended for JDK 7 and older versions. For JDK 8 and onward, we recommend using the G1 collector for applications that need low application pause times.

NOTE: CMS was deprecated in JDK 11 and removed from JDK 14. See JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector for more information.


Further Reading

See “Concurrent Mark Sweep (CMS) Collector” in the HotSpot Virtual Machine Garbage Collection Tuning Guide for your version of the JDK:


Last reviewed on Sat Feb 01 2025 00:00:00 GMT+0000 (Coordinated Universal Time)