Clarity is not accessible, slow or services crash with java.lang.OutOfMemoryError: GC overhead limit exceeded
Environment
All Supported Clarity Releases
Cause
GC handling is not optimal
Excessive GC Time leads to OutOfMemoryError
The java.lang.OutOfMemoryError: GC overhead limit exceeded error with the G1 garbage collector (G1GC) means the JVM is spending over 98% of its CPU time on garbage collection but is reclaiming less than 2% of the heap, effectively making little progress.
Resolution
Review the JVM settings of the application in properties.xml, specifically in regards of Garbage collection (GC)
Increase java heap size if required
Adjust the GC settings accordingly to allow for better GC handling to avoid excessive GC time