Concurrent mark sweep collector

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Widefox (talk | contribs) at 16:21, 21 June 2017 (tidy, update). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS)[1] 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.[2] The newer Garbage-first collector (G1) is planned to replace CMS.[3]

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

See also

References

  1. ^ a b "Concurrent Mark Sweep Collector Enhancements".
  2. ^ "Garbage Collector Ergonomics".
  3. ^ "Java HotSpot Garbage Collection".
  4. ^ "Garbage Collectors".