CMS-concurrent-sweep taking long time

400 Views Asked by At

I have a windows machine running on KVM and I am running a java application (Using CMS GC) on the windows machine. The application was behaving very slow, so I checked the GC logs. The max heap size was 5 GB, but in the gc logs, I could find that the minor gcs was taking 5 seconds even before the heap reached the max 5GB. GC Graph

Upon checking which phase was using more time, I found this GC times

Legend

CMS-concurrent-sweep was taking too much time. Upon checking the same in another windows machine, I found that the CMS-concurrent-mark and CMS-concurrent-sweep was taking almost 30%. What does the increased CMS-concurrent-sweep value specify? Does it mean that deallocating was taking too much time? Could this be due to slow memory speeds or possibly swapping?

0

There are 0 best solutions below