For faster navigation, this Iframe is preloading the Wikiwand page for Concurrent mark sweep collector.

Concurrent mark sweep collector

This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: "Concurrent mark sweep collector" – news · newspapers · books · scholar · JSTOR (April 2012) (Learn how and when to remove this message)

The concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS)[1] was a mark-and-sweep garbage collector in the Oracle HotSpot Java virtual machine (JVM) available since version 1.4.1. It was deprecated on version 9[2] and removed on version 14,[3] so from Java 15 it is no longer available.[4][5]

HotSpot garbage collectors

The HotSpot JVM selects the default garbage collector based on several factors.[6] The newer garbage-first collector (G1) was planned to replace CMS.[7] That change was finally done in version 9.

To launch the JVM with this garbage collector you can add this property to the java command line -XX:+UseConcMarkSweepGC[8][1] when using java version less than 14.

See also

References

  1. ^ a b "Concurrent Mark Sweep Collector Enhancements".
  2. ^ "JEP 291: Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector".
  3. ^ "JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector".
  4. ^ "JVM Garbage Collectors".
  5. ^ "Release Note: JEP 363: Remove the Concurrent Mark and Sweep (CMS) Garbage Collector".
  6. ^ "Garbage Collector Ergonomics".
  7. ^ "Java HotSpot Garbage Collection".
  8. ^ "Garbage Collectors".


{{bottomLinkPreText}} {{bottomLinkText}}
Concurrent mark sweep collector
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 ๐ŸŽ‰! the new version arrives on September 1st! Don't want to wait?