Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does CMS mean in relation to Java's Garbage Collector?

A lot of JVM's command line arguments dealing with the garbage collector have "CMS" prepended to them. What does this stand for?

like image 676
Andrey Fedorov Avatar asked Apr 17 '09 18:04

Andrey Fedorov


3 Answers

Concurrent Mark Sweep

(Or as Tom mentions in the comments, mostly Concurrent Mark Sweep.)

like image 143
Jon Skeet Avatar answered Oct 22 '22 11:10

Jon Skeet


It's a method or algorithm for garbage collection that, in theory, affects the performance of the application less than the older methods.

The concurrent mark sweep collector, also known as the concurrent collector or CMS, is targeted at applications that are sensitive to garbage collection pauses. It performs most garbage collection activity concurrently, i.e., while the application threads are running, to keep garbage collection-induced pauses short

G1 is the next level being considered/developed.

like image 38
Adam Davis Avatar answered Oct 22 '22 10:10

Adam Davis


See Memory Management in the Java Virtual Machine for more details....

like image 33
Dipak Bhimani Avatar answered Oct 22 '22 12:10

Dipak Bhimani