tomcat7并发设置

image

Feb 01, 2016 5:32:30 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minProcessors’ to ‘100’ did not find a matching property.
Feb 01, 2016 5:32:30 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxProcessors’ to ‘10000’ did not find a matching property.
Feb 01, 2016 5:32:30 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxSpareThreads’ to ‘10000’ did not find a matching property.

最近在设置tomcat并发进行测试,在修改server.xml文件后出现如上面的警告,虽然不影响程序的正常运行BUT看着很不舒服。添加的参数如下:

minProcessors="100"
maxProcessors="1000"
maxThreads="5000"
minSpareThreads="1000"
maxSpareThreads="10000"
acceptCount="5000"

没有找到匹配的属性。。。乖乖一直以为设置的太过火了。。

然后翻了翻官方文档。。尼玛根本就没这三个属性参数,看来网上的参数都是很久以前从6一直演变而来的【TOMCAT7 DOCS

直接删除掉这几个参数属性就可以了。

maxThreads="5000"
minSpareThreads="1000"
acceptCount="5000"
- THE END -
版权声明:
转载原创文章请注明,文章出处:http://kinggoo.com
原文地址:http://kinggoo.com/tomcat7-concurrencyset.htm
发表评论?

2 条评论。

  1. 很有用的经验 感谢分享 🙂 🙂

发表评论