How to deal with “java.lang.OutOfMemoryError: Java heap space” error?

后端 未结 21 1694
死守一世寂寞
死守一世寂寞 2020-11-21 04:49

I am writing a client-side Swing application (graphical font designer) on Java 5. Recently, I am running into java.lang.OutOfMemoryEr

21条回答
  •  独厮守ぢ
    2020-11-21 05:18

    If this issue is happening in Wildfly 8 and JDK1.8,then we need to specify MaxMetaSpace settings instead of PermGen settings.

    For example we need to add below configuration in setenv.sh file of wildfly. JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=256M"

    For more information, please check Wildfly Heap Issue

提交回复
热议问题