标签:响应 col 3.2 catalina http 工作模式 art rtu out
tomcat9.0.4参考了网上的一些优化参数,但是在启动中发现 有2个报错:
11-Feb-2018 15:57:23.293 警告 [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxSpareThreads‘ to ‘200‘ did not find a matching property.
11-Feb-2018 15:57:23.343 警告 [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘compressableMimeType‘ to ‘text/html,text/xml,application/javascript,text/css,text/plain‘ did not find a matching property.
参考官方文档
http://tomcat.apache.org/tomcat-9.0-doc/config/http.html
maxSpareThread 这个参数已经找不到了。
compressableMimeTyp 已更换名字为 compressibleMimeType
最后修改如下:
<Connector
port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol"
enableLookups="false"
maxThreads="1000"
minSpareThreads="100"
acceptCount="900"
disableUploadTimeout="true"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443"
compression="on"
compressionMinSize="1024"
useSendfile="false"
noCompressionUserAgents="gozilla, traviata"
compressibleMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript " />
参数说明:
实际测试,可正常运行。无报错
标签:响应 col 3.2 catalina http 工作模式 art rtu out
原文地址:http://blog.51cto.com/hequan/2071146