[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%"