码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat启动内存修改

时间:2019-11-07 11:21:15      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:span   ring   comm   command   any   app   catalina   The   com   

#   USE_NOHUP       (Optional) If set to the string true the start command will

#                   use nohup so that the Tomcat process will ignore any hangup

#                   signals. Default is "false" unless running on HP-UX in which

#                   case the default is "true"

# -----------------------------------------------------------------------------

 

JAVA_OPTS=-Xms256m -Xmx256m

 

# OS specific support.  $var _must_ be set to either true or false.

cygwin=false

darwin=false

os400=false

hpux=false

case "`uname`" in

CYGWIN*) cygwin=true;;

 

JAVA_OPTS=‘-Xms512m -Xmx1024m

linux 下调整tomcat的内存设置
修改bin目录下catalina.sh文件
在cygwin=false之上
添加以下语句
JAVA_OPTS="-Xms1024m -Xmx4096m -Xss1024K -XX:PermSize=512m -XX:MaxPermSize=2048m"
其中-xms为jvm初始化堆的大小,-xmx为jvm堆的最大值

 

 

tomcat启动内存修改

标签:span   ring   comm   command   any   app   catalina   The   com   

原文地址:https://www.cnblogs.com/xingchong/p/11810858.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!