Question

java.lang.OutOfMemoryError: Metaspace | PRPC731 | TOMCAT8 |JAVA8.

Hi,

We are observing lots of "java.lang.OutOfMemoryError: Metaspace " errors in the production logs. XX:MaxMetaspaceSize value has been set to 1024m.

I am referring to the following PDN article (https://pdn.pega.com/community/product-support/question/javalangoutofmemoryerrormetaspace-error-logs-pega73-using-java-8) which contains details about similar kind of issue.

Could someone please suggest if we have to add the following JVM arg "-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true" or to increase the MetaspaceSize value to circumvent the issue.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
March 27, 2018 - 1:50am

Hi Pradeep,

Increasing metaspace alone should do it.
-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true this might have some performance impact.

Thanks,
Ujjwal

Comments

Keep up to date on this post and subscribe to comments

March 27, 2018 - 1:50am

Hi Pradeep,

Increasing metaspace alone should do it.
-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true this might have some performance impact.

Thanks,
Ujjwal