[Linux] Tomcat java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

设置Tomcat的JAVA_OPTS参数
修改$TOMCAT_HOME/bin/catalina.sh

添加set JAVA_OPTS= ...

JAVA_OPTS="$JAVA_OPTS -server -Xms800m -Xmx800m -XX:MaxNewSize=256m"
echo Using CATALINA_BASE:   "%CATALINA_BASE%"
echo Using CATALINA_HOME:   "%CATALINA_HOME%"
echo Using CATALINA_TMPDIR: "%CATALINA_TMPDIR%" 
posted @ 2020-11-24 11:02  ABeen  阅读(381)  评论(0编辑  收藏  举报