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

http://blog.csdn.net/dracotianlong/article/details/8963594

 

 

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

 分类:
Tomcat(11) 
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

信息: 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: ....后面省略   

转载于:https://www.cnblogs.com/lteal/p/7088463.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值