首页 > 代码库 > tomcat优化篇
tomcat优化篇
Catalina优化
# Uncomment the following line to make the umask available when using the
# org.apache.catalina.security.SecurityListener
#JAVA_OPTS="$JAVA_OPTS -Dorg.apache.catalina.security.SecurityListener.UMASK=`umask`"
内存优化内容JAVA_OPTS=$JAVA_OPTS -server -Xms2048m -Xmx2048m -XX:PermiSize=256M -XX:MaxPermSize=512m -Djava.awt.headless=ture
# ----- Execute The Requested Command -----------------------------------------
Server.xml优化
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"/切换至nio模型
connectionTimeout="20000"
redirectPort="8443"
maxThreads="500"/最大访问量
minSpareThreads="100"/线程池
maxSpareThreads="200"/线程池
acceptCount="200"/等待线程数
enableLookups="false"/是否DNS反查
/>
本文出自 “Mr.Liang” 博客,请务必保留此出处http://liangml.blog.51cto.com/10852271/1855778
tomcat优化篇