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反查
/>
时间: 2024-10-18 07:32:28