19

A java program is giving this warning, with JRE 10.0.2:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

What is the recommended replacement for this switch?

1 Answer 1

12

Dropping support for CMS and then removing the CMS code, or at least more thoroughly segregating it, will reduce the maintenance burden of the GC code base and accelerate new development. The G1 garbage collector is intended, in the long term, to be a replacement for most uses of CMS.

From the Official JEP

1
  • I am seeing significant difference, while I needed 10G ram for caching cassandra using UseConcMarkSweepGC now I need double memory in order to keep it running. I am not convinced that UseG1GC is equal alternative to UseConcMarkSweepGC . Anyone has same experience or a GC more alike good old UseConcMarkSweepGC ??
    – Peter
    Commented May 26 at 12:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.