How to avoid long pauses on Java CMS GC due to swap

83 Views Asked by At

I have experienced some Minor GCs on Java CMS GC taking too much time. This generally occurs after some application's idle hours, and takes real time but not user nor cpu time.

I've seen that the machine has experienced some peak of memory usage due to other applications' activities, and I've seen that when the Minor GC takes long (about 10 secs) there is a high activity on swap area.

That said, I'm assuming that when the Minor GC occurs, the memory that are going to be analyzed, or at least portions of that, are probably in the swap area, therefore the Minor GCs take long.

I'd like to ask if I could do something to avoid this from happening, apart from avoiding machine to reach 100% of memory utilization, as it is not a thing that I can control.

0

There are 0 best solutions below