How to increase heap size for jBoss server

前端 未结 9 1264
星月不相逢
星月不相逢 2020-12-31 05:14

I have an upload files scenario in my project. When I\'m trying to upload the large files it\'s giving me an OutOfMemory error. That error is related to Java heap size.

9条回答
  •  一个人的身影
    2020-12-31 05:44

    Edit the following entry in the run.conf file. But if you have multiple JVMs running on the same JBoss, you might want to run it via command line argument of -Xms2g -Xmx4g (or whatever your preferred start/max memory settings are.

    if [ "x$JAVA_OPTS" = "x" ]; then
        JAVA_OPTS="-Xms2g -Xmx4g -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true
    

提交回复
热议问题