Java – outofmemoryerror: compress class space

I received this error:

"java.lang.OutOfMemoryError: Compressed class space"

Until I figure out what trigger it is, I try to disable compressed class pointers

-XX:-UseCompressedClassPointers.

But I still get this mistake How is this possible?

thank you!

Solution

Compressed class space is a part of meta space

It seems that your solution is to increase the maximum meta space size, or you may have a vulnerable class loader

Usually, this error is thrown when there is not enough space to allocate objects in the Java heap In this case, the garbage collector cannot make space available for new objects and cannot further expand the heap In addition, this error may be thrown when the native memory is insufficient to support loading Java classes In rare cases, Java. Java. XML may be thrown when too much time is spent on garbage collection and too little memory is freed lang.OutOfMemoryError.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>