本人微信公众号"aeolian"~

Tomcat报错Exception: java.lang.OutOfMemoryError

进入Tomcat中的/bin/catalina.sh 
在catalina.sh中echo”Using CATALINA_BASE”之前的一行添加如下代码: 

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx1024m -XX:NewSize=512m -XX:MaxNewSize=256m -XX:PermSize=512m -XX:MaxPermSize=512m"

 

点赞

Leave a Reply

Your email address will not be published. Required fields are marked *