[JBoss] java.lang.OutOfMemoryError: Metaspace - -XX:MaxMetaspaceSize What value to set

Discussão em 'StackOverflow' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    We have a Jboss application and we often get the error in the logs:

    ERROR [org.jboss.threads.errors] (management task-2) Thread Thread[management task-2,5,main] threw an uncaught exception: java.lang.OutOfMemoryError: Metaspace

    The current settings for the JVM is below: JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m"

    Since we are getting java.lang.OutOfMemoryError: Metaspace we have planned to increase the -XX:MaxMetaspaceSize size.

    Question:

    1. Currently we are using 6GB of RAM in the Server and if we want to increase the size for -XX:MaxMetaspaceSize, what is the maximum value we can set?

    Continue reading...

Compartilhe esta Página