Thus, from Java 9 onwards, if you launch the application with -XX:+UseConcMarkSweepGC (an argument which will activate the CMS GC algorithm), you are going to see below WARNING message: If there is a lot of baggage to carry, it’s hard to move forward quickly.

CMS is a highly configurable, sophisticated algorithm and thereby causes a lot of complexities to the GC code base in JDK.

Early access of Z GC algorithm is available in Java 11 and 12.

So, if you have explored the other two options and convinced the CMS algorithm is the marriage made for your application in heaven, you can consider running with the CMS algorithm itself.

Related Articles