360SDN.COM

首页/Tomcat/列表

tomcat8.5优化配置Http11Nio2Protocol

来源:  2018-07-25 16:30:14    评论:0点击:

tomcat8.5 server.xml配置

<Executor name="tomcatThreadPool" 
    namePrefix="catalina-exec-"
    maxThreads="500" 
    minSpareThreads="30"
    maxIdleTime="60000"
    prestartminSpareThreads = "true"
    maxQueueSize = "Integer.MAX_VALUE"/>
 
    <Connector 
            executor="tomcatThreadPool"
            port="8080"
            protocol="org.apache.coyote.http11.Http11Nio2Protocol"
            connectionTimeout="20000"
         maxConnections="10000"
         redirectPort="8443"
         enableLookups="false"
         acceptCount="500" 
         maxHttpHeaderSize="8192"
         compression="on"
         disableUploadTimeout="true"
         compressionMinSize="2048"
         acceptorThreadCount="4"
         compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/x-javascript,application/json,application/x-font-ttf,,text/json,application/x-www-form-urlencoded,text/plain,application/xml,application/x-font-otf,image/svg+xml,image/jpeg,image/png,image/gif,audio/mpeg,video/mp4"
        
/>
为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权