Skip to main content

 Problem

Data Collector encountering OutOfMemory error: 

java.lang.OutOfMemoryError: Compressed class space

This error occurs when the capacity for classes and their metadata is exceeded. When the flag UseCompressedClassPointers is enabled, which it is by default, the capacity for class metadata is fixed at the amount set by CompressedClassSpaceSize. This value is 1G by default.

 

Solution

Explicitly set the JVM option -XX:CompressedClassSpaceSize to a larger amount than 1G.

Ex:

export SDC_JAVA_OPTS="-XX:CompressedClassSpaceSize=2G ${SDC_JAVA_OPTS}"

 

Be the first to reply!

Reply