Apache Tomcat Native library

2011-05-08  张林 

Apache Tomcat Native library
ENV: apache-tomcat-7.0.12
java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\java\jdk1.6.0_11\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\projects\play-1.2.1;C:\Perl\bin
2011-5-8 18:14:36 org.apache.coyote.AbstractProtocolHandler init

http://tomcat.heanet.ie/native/1.1.12/binaries/win32/
在启动Tomcat 6.0时发现第一条信息便是:
The Apache Tomcat Native library which allows optimal performance in production environments was not found ……
解决方法:
相关文档:http://tomcat.apache.org/tomcat-6.0-doc/apr.html
去这里http://tomcat.heanet.ie/native/下载最新版本的tcnative-1.dll放到Tomcat的安装目录\Bin下
之后重启Tomcat就OK了。
比如现在我已下载了V1.1.14的tcnative-1.dll,启动时信息变成:
引用
信息: Loaded APR based Apache Tomcat Native library 1.1.14.
这个APR是什么作用呢?Tomcat 可以用 Apache Portable Runtime 来提供更强性能,提升Web静态页面的处理能力,不再需要专门的Web Server来处理静态页面了。
http://dev.firnow.com/course/3_program/java/javashl/2008422/110729.html
444°/4440 人阅读/0 条评论 发表评论

登录 后发表评论