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 

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反查 
/> 
posted @ 2017-02-19 20:43  Callum  阅读(135)  评论(0编辑  收藏  举报