The concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS)
was a
mark-and-sweep garbage collector in the
Oracle
An oracle is a person or agency considered to provide wise and insightful counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. As such, it is a form of divination.
Description
The wor ...
HotSpot
Hotspot, Hot Spot or Hot spot may refer to:
Places
* Hot Spot, Kentucky, a community in the United States
Arts, entertainment, and media Fictional entities
* Hot Spot (comics), a name for the DC Comics character Isaiah Crockett
* Hot Spot (Tra ...
Java virtual machine
A Java virtual machine (JVM) is a virtual machine that enables a computer to run Java programs as well as programs written in other languages that are also compiled to Java bytecode. The JVM is detailed by a specification that formally describ ...
(JVM) available since version 1.4.1. It was deprecated on version 9 and removed on version 14, so from Java 15 it is no longer available.
HotSpot garbage collectors
The HotSpot JVM selects the default garbage collector based on several factors. The newer
garbage-first collector The garbage-first collector (G1) is a garbage collection algorithm introduced in the Oracle HotSpot Java virtual machine (JVM) 6 and supported from 7 Update 4. It was planned to replace concurrent mark sweep collector (CMS) in JVM 7 and was made ...
(G1) was planned to replace CMS. 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
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
-XX:+UseConcMarkSweepGC
when using java version less than 14.
See also
*
List of Java virtual machines
This article provides non-exhaustive lists of Java SE Java virtual machines (JVMs). It does not include every Java ME vendor. Note that Java EE runs on the standard Java SE JVM but that some vendors specialize in providing a modified JVM optimized ...
References
{{DEFAULTSORT:Concurrent Mark Sweep Collector
Automatic memory management
Java virtual machine
Memory management algorithms