解决linux中tomcat内存溢出方法
在catalina.sh中加上:
# Bugzilla 37848: only output this if we have a TTY
if [ $have_tty -eq 1 ]; then
echo "Using CATALINA_BASE: $CATALINA_BASE"
JAVA_OPTS="-server -Xms512m -Xmx1024m -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=384m -Djava.awt.headless=true "
echo "Using CATALINA_HOME: $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
if [ "$1" = "debug" ] ; then
echo "Using JAVA_HOME: $JAVA_HOME"
else
echo "Using JRE_HOME: $JRE_HOME"
fi
echo "Using CLASSPATH: $CLASSPATH"
fi
相关推荐
ribavnu 2020-08-15
清溪算法 2020-05-25
蚩尤后裔 2020-04-23
zhouxihua0 2020-04-23
tlsmile 2020-02-11
渴望就奋力追寻 2020-01-28
zhouxihua0 2019-12-25
xiaoyezi 2014-06-06
一支菜鸟 2019-11-03
ChenRuiyz 2019-10-30
zhouxihua0 2015-06-02
hellosunshine 2019-08-01
sparkjvm 2016-11-12
esbaoly 2018-12-24
郭朝 2014-07-18
LUOPING0 2011-08-22
bulargyzone 2013-12-17
TRUELOVE 2016-11-12