欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

tomcat调优

程序员文章站 2022-06-01 12:15:23
...
	<Connector port="8081" protocol="HTTP/1.1" redirectPort="8443" maxHttpHeaderSize="8192"
               connectionTimeout="20000"
               keepAliveTimeout="3000"
               executor="tomcatThreadPool"
               acceptCount="200"
               maxKeepAliveRequests="200"
               disableUploadTimeout="true"
               useBodyEncodingForURI="true"
               URIEncoding="UTF-8"
               enableLookups="false"
               compression="on" compressionMinSize="2048" 
               compressableMimeType="text/html,application/xhtml+xml,text/xml,text/css,text/javascript"
                />
 
   <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="1000" minSpareThreads="25" maxSpareThreads="75"/>

 jvm调优和apr安装见我的另一篇文章