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.
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.
What else I could do to resolve or figure out the cause of the issue ?