Concurrent mark sweep collector
From HandWiki
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.0 1.1 "Concurrent Mark Sweep Collector Enhancements". http://docs.oracle.com/javase/7/docs/technotes/guides/vm/cms-6.html.
- ↑ "JEP 291: Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector". https://openjdk.java.net/jeps/291.
- ↑ "JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector". https://openjdk.java.net/jeps/363.
- ↑ "JVM Garbage Collectors". https://www.baeldung.com/jvm-garbage-collectors.
- ↑ "Release Note: JEP 363: Remove the Concurrent Mark and Sweep (CMS) Garbage Collector". https://bugs.openjdk.java.net/browse/JDK-8233390.
- ↑ "Garbage Collector Ergonomics". http://docs.oracle.com/javase/1.5.0/docs/guide/vm/gc-ergonomics.html.
- ↑ "Java HotSpot Garbage Collection". http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html.
- ↑ "Garbage Collectors". http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html.
Original source: https://en.wikipedia.org/wiki/Concurrent mark sweep collector.
Read more |