Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Garbage collector for young generation

Have sort question - is it true that all GC in JDK 7 (other than G1) always use stop-the-world for young generation collection?

thanks

like image 531
Alan Harper Avatar asked Sep 03 '13 01:09

Alan Harper


1 Answers

For OpenJDK, JRockit, IBM JVM, and Sun/Oracle JDK, the young collection is always stop the world for every available collector.

The only JVM I know of which does not have a stop the world collector is Azul's Zing. (Not free)

While OpenJDK/Hotspot has CMS this is mostly concurrent. There is still stop the world portions and in some cases CMS will fall back to a Full GC which is stop-the-world.

AFAIK, It is hard to find real world examples where G1 is faster in terms of pause time than CMS, however it is improving all the time.

Do your GC logs speak to you

like image 192
Peter Lawrey Avatar answered Oct 25 '22 13:10

Peter Lawrey