博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Tomcat 启动出现警告问题Setting property 'minSpar eThreads' to '25' did not find a matching property...
阅读量:5299 次
发布时间:2019-06-14

本文共 2298 字,大约阅读时间需要 7 分钟。

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

 

转载于:https://www.cnblogs.com/sfnz/p/7207280.html

你可能感兴趣的文章
实用拜占庭容错算法PBFT
查看>>
java b组 小计算器,简单计算器..
查看>>
java的二叉树树一层层输出,Java构造二叉树、树形结构先序遍历、中序遍历、后序遍历...
查看>>
php libevent 定时器,PHP 使用pcntl和libevent实现Timer功能
查看>>
php仿阿里巴巴,php实现的仿阿里巴巴实现同类产品翻页
查看>>
matlab fis编辑器在哪,基本FIS编辑器
查看>>
linux的串口子系统,TTY子系统
查看>>
修改linux远程22端口,linux修改ssh远程端口22
查看>>
Linux系统的创始者,组图:Linux之父的办公室首度曝光
查看>>
关于linux的环境变量设置,linux环境变量设置
查看>>
socket模块,简单的套接字,加循环
查看>>
个人主页优化(2)
查看>>
Node 中异常收集与监控
查看>>
二丶Python字符串1
查看>>
七丶Python字典
查看>>
一丶Python简介
查看>>
Excel-信息函数&数组公式
查看>>
Excel-基本操作
查看>>
面对问题,如何去分析?(分析套路)
查看>>
Excel-逻辑函数
查看>>