Andrey Fedorov
Andrey Fedorov

Reputation: 9689

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?

Upvotes: 11

Views: 7788

Answers (3)

Dipak Bhimani
Dipak Bhimani

Reputation: 11

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

Upvotes: 1

Adam Davis
Adam Davis

Reputation: 93565

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.

Upvotes: 8

Jon Skeet
Jon Skeet

Reputation: 1501163

Concurrent Mark Sweep

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

Upvotes: 13

Related Questions