I got this error:
"java.lang.OutOfMemoryError: Compressed class space"
and until I'll figure out what's the trigger, I tried to disabling compressed class pointers with
-XX:-UseCompressedClassPointers.
but I still get this error. how is it possible?
Thanks!
This exception is explained in Understand the OutOfMemoryError Exception:
Cause: On 64-bit platforms a pointer to class metadata can be represented by a 32-bit offset (with
UseCompressedOops
). This is controlled by the command line flagUseCompressedClassPointers
(on by default). If theUseCompressedClassPointers
is used, the amount of space available for class metadata is fixed at the amountCompressedClassSpaceSize
. If the space needed forUseCompressedClassPointers
exceedsCompressedClassSpaceSize
, ajava.lang.OutOfMemoryError
with detail Compressed class space is thrown.Action: Increase
CompressedClassSpaceSize
or you can turn offUseCompressedClassPointers
. Note: There are bounds on the acceptable size ofCompressedClassSpaceSize
. For example-XX:CompressedClassSpaceSize=4g
, exceeds acceptable bounds will result in a message such as CompressedClassSpaceSize of 4294967296 is invalid; must be between 1048576 and 3221225472.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With