1. 程式人生 > >Tomcat 啟動出現警告問題Setting property 'minSpar eThreads' to '25' did not find a matching property

Tomcat 啟動出現警告問題Setting property 'minSpar eThreads' to '25' did not find a matching property

lin server http1 max accep quest 重新 ble cat

tomcat啟動報錯:

Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minProcessors‘ to ‘20‘ did not find a matching property.
Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxProcessors‘ to ‘200‘ did not find a matching property.
Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘redirectPort‘ to ‘{https.port}‘ did not find a matching property.
Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minProcessors‘ to ‘20‘ did not find a matching property.
Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxProcessors‘ to ‘200‘ did not find a matching property.
Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘redirectPort‘ to ‘{https.port}‘ did not find a matching property.
Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘disableUploadTimeout‘ to ‘true‘ did not find a matching property.

具體解決方法如下:

server.xml中的配置HTTPS的那部分Connector代碼

<Connector acceptCount="200"
port="${http.port}"
protocol="HTTP/1.1" //要修改這行
executor="tomcatThreadPool"
enableLookups="false"
connectionTimeout="20000"
maxKeepAliveRequests="15"
minProcessors="20"
maxProcessors="200"
redirectPort="{https.port}"
disableUploadTimeout="true"/>

修改後:

<Connector acceptCount="200"
port="${http.port}"
protocol="org.apache.coyote.http11.Http11Protocol" //protocol 協議要寫全
executor="tomcatThreadPool"
enableLookups="false"
connectionTimeout="20000"
maxKeepAliveRequests="15"
minProcessors="20"
maxProcessors="200"
redirectPort="{https.port}"
disableUploadTimeout="true"/>

將protocol參數由"HTTP/1.1"改成"org.apache.coyote.http11.Http11Protocol",重新啟動Tomcat,就沒問題了。

Tomcat 啟動出現警告問題Setting property 'minSpar eThreads' to '25' did not find a matching property