0

We migrated a legacy project [spring/hibernate] from java 7 to corretto 11 Our original project[java 7] had the following JVM Arguments

-XX:PermSize=192M -XX:MaxPermSize=192M

Keeping this as is [without any new args for metaspace or compressedclassspace] we went live. The application ran without issue for few days, but from around the 4th day, some of the servers start throwing java.lang.OutOfMemoryError: Compressed class space and some threw java.lang.OutOfMemoryError: Metaspace

Heapdump or gc log generated during this time did not yield any useful information.

VM.metaspace later taken from one of the server have the following values.

enter image description here

I could not find any concrete recommendation besides suggestions to increase metaspace or compressedclassspace.

I am thinking of adding the below params and make another attempt.

enter image description here

What else I could do to resolve or figure out the cause of the issue ?

Joe Manavalan
  • 103
  • 1
  • 5
  • -Xlog: provided me info on JAXB class loading continuously. So I think it could be related to JAXB issue. Solution in https://stackoverflow.com/questions/33255578/old-jaxb-and-jdk8-metaspace-outofmemory-issue appears to have resolved the issue in lower environments – Joe Manavalan Apr 12 '22 at 18:22

0 Answers0