How to increase Java heap space for a tomcat app

前端 未结 10 2393
攒了一身酷
攒了一身酷 2020-12-08 09:59

There are lots of questions that ask this or a similar question.

They all give the command that has to be executed, what I don\'t understand is where do I write this

10条回答
  •  执笔经年
    2020-12-08 10:49

    you can set this in catalina.sh as CATALINA_OPTS=-Xms512m -Xmx512m

    Open your tomcat-dir/bin/catalina.sh file and add following line anywhere -

    CATALINA_OPTS="$CATALINA_OPTS -Xms1024m -Xmx3024m"
    

    and restart your tomcat

提交回复
热议问题