Supriya Ghosh (Editor)

Concurrent mark sweep collector

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The Concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS) is a mark-sweep garbage collector in the Oracle HotSpot Java virtual machine (JVM) available since version 1.4.1.

HotSpot garbage collectors

The HotSpot JVM selects the default garbage collector based on several factors. The newer Garbage-first collector (G1) is planned to replace CMS.

To launch the JVM with this garbage collector you can add this property to the java command line -XX:+UseConcMarkSweepGC

References

Concurrent mark sweep collector Wikipedia