首页 > 代码库 > Tomcat性能调优后, 启动出现警告问题 [did not find a matching property.]
Tomcat性能调优后, 启动出现警告问题 [did not find a matching property.]
http://blog.csdn.net/dracotianlong/article/details/8963594
Tomcat性能调优后, 启动出现警告问题 [did not find a matching property.]
2013-05-23 09:40 33522人阅读 评论(3) 收藏 举报
分类:
版权声明:本文为博主原创文章,未经博主允许不得转载。
2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.23 using APR version 1.4
.6.
2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minSpar
eThreads‘ to ‘25‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxSpar
eThreads‘ to ‘75‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxProc
essors‘ to ‘1000‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minProc
essors‘ to ‘5‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘useURIV
alidationHack‘ to ‘false‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized with version OpenSSL 1.0.0g 18 Jan 2012
2013-5-22 16:29:49 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2013-5-22 16:29:49 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2013-5-22 16:29:49 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 916 ms
2013-5-22 16:29:49 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-5-22 16:29:49 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.36
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2013-5-22 16:29:49 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\tomcat\webapps\ROOT\WEB-INF\lib\servlet-api.jar) - jar
not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/
Servlet.class
2013-5-22 16:30:12 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-80
2013-5-22 16:30:12 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2013-5-22 16:30:12 org.apache.catalina.startup.Catalina start
信息: Loaded APR based Apache Tomcat Native library 1.1.23 using APR version 1.4
.6.
2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minSpar
eThreads‘ to ‘25‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxSpar
eThreads‘ to ‘75‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘maxProc
essors‘ to ‘1000‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘minProc
essors‘ to ‘5‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property ‘useURIV
alidationHack‘ to ‘false‘ did not find a matching property.
2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized with version OpenSSL 1.0.0g 18 Jan 2012
2013-5-22 16:29:49 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2013-5-22 16:29:49 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2013-5-22 16:29:49 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 916 ms
2013-5-22 16:29:49 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-5-22 16:29:49 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.36
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2013-5-22 16:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2013-5-22 16:29:49 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\tomcat\webapps\ROOT\WEB-INF\lib\servlet-api.jar) - jar
not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/
Servlet.class
2013-5-22 16:30:12 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-80
2013-5-22 16:30:12 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2013-5-22 16:30:12 org.apache.catalina.startup.Catalina start
信息: Server startup in 23826 ms
说明:Tomcat性能调优后需要修改server.xml Tomcat 连接协议配置具体如下
解决方案:
<Connector port="80" protocol="HTTP/1.1"
<Connector port="80" protocol="org.apache.coyote.http11.Http11Protocol"
protocol 协议要写全。
解释
在配置tomcat的SSL双向握手中,由于6.0.36版本中默认启用了APR(APR是通过JNI访问的可移植库,可以提高Tomcat的性能和伸缩性),所以采用传统的配置方式会报异常;
如果辨别Tomcat是否采用APR:
启动Tomcat时,如果采用APR,日志中会有如下信息:
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
如果没有采用APR,启动时则显示类似的信息:
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: ....后面省略
Tomcat性能调优后, 启动出现警告问题 [did not find a matching property.]
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。