`
kalogen
  • 浏览: 863556 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

信息: The APR based Apache Tomcat Native library which allows optimal perfor

阅读更多

启动myeclipse的tomcat6.0有如下提示:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_04\jre\bin;C:\Program Files\Tomcat 6.0\bin

 

 

解决办法:

哦,这个问题,官方的参考资料是:http://tomcat.apache.org/tomcat-6.0-doc/apr.html
tomcat整合本地apr会使效率提升:
一是,处理静态资源的时候速度更快,(注:有人用jmeter,对使用apr前后的tomcat进行压力测试,结果显示,性能是有一定的提升,但是没有想象中多,只有一点点,当然,这与运行的逻辑有关,但是我个人认为在大多数情况下这部分性能提升甚微)。
二是,我认为提升比较多的是对ssl的处理效率,当tomcat处理https的请求是,如果使用本地的openssl库,肯定会比前面提升的效率高。(虽然没有实际测试数据,但我推测这里的性能提升比例上要比第一点多得多)。

http://tomcat.heanet.ie/native/1.1.10/binaries/win32/tcnative-1.dll
下载保存到%tomcat_home%/bin下面即可、

 

重启tomcat后 出现信息:

 

信息: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics