Tomcat 启动出现警告问题Setting property 'minSpar eThreads' to '25' did not find a matching p

Posted 思凡念真

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tomcat 启动出现警告问题Setting property 'minSpar eThreads' to '25' did not find a matching p相关的知识,希望对你有一定的参考价值。

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 p的主要内容,如果未能解决你的问题,请参考以下文章

eclipse下启动tomcat9出现Setting property 'source' to 'org.eclipse.jst.jee.server:

当启动tomcat时出现tomcat setting should be set in tomcat preference page

Tomcat性能调优后, 启动出现警告问题 [did not find a matching property.]

eclipse使用tomcat打开maven项目时,报警告 警告: [SetContextPropertiesRule]{Context} Setting property 'source&

eclipse下启动tomcat出现Setting property 'source' to 'org.eclipse.jst.jee.server: '错误的解决办法

tomcat日志警告WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'deb