Catalina优化

#Uncommentthefollowinglinetomaketheumaskavailablewhenusingthe

#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

#-----ExecuteTheRequestedCommand-----------------------------------------

Server.xml优化

<Connectorport="8080"protocol="org.apache.coyote.http11.Http11NioProtocol"/切换至nio模型

connectionTimeout="20000"

redirectPort="8443"

maxThreads="500"/最大访问量

minSpareThreads="100"/线程池

maxSpareThreads="200"/线程池

acceptCount="200"/等待线程数

enableLookups="false"/是否DNS反查

/>