提高tomcat的响应速度

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gaoxiaogs/article/details/50588463

用<Connector URIEncoding="UTF-8" connectionTimeout="20000"
enableLookups="false" maxThreads="128" minSpareThreads="8" port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"
useBodyEncodingForURI="true" compression="on" compressionMinSize="50" noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"/>

替换


<Connector port="8080" protocol="HTTP/1.1"

connectionTimeout="20000"

redirectPort="8443" />

即可,大约在server.xml文件的第70行左右

展开阅读全文

没有更多推荐了,返回首页