zoukankan      html  css  js  c++  java
  • Tomcat 启动出现警告问题Setting property 'minSpar eThreads' to '25' did not find a matching property

    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,就没问题了。

  • 相关阅读:
    滴滴快车奖励政策,高峰奖励,翻倍奖励,按成交率,指派单数分级(2月16日)
    优步UBER司机全国各地奖励政策汇总 (2月15日-2月21日)
    优步UBER司机全国各地奖励政策汇总 (2月8日-2月14日)
    滴滴快车奖励政策,高峰奖励,翻倍奖励,按成交率,指派单数分级(2月7日~2月13日)
    成都Uber优步司机奖励政策(2月7日)
    file does not exist 阿里云OSS图片上传遇到的问题
    redis.conf 配置项说明
    redis 五大数据类型的常用指令
    redis配置外部访问
    linux安装redis
  • 原文地址:https://www.cnblogs.com/sfnz/p/7207280.html
Copyright © 2011-2022 走看看