启动tomcat,出现The Apache Tomcat Native library which allows optimal performance in production environments was not found on the jav

2011-4-23 17:16:01 org.apache.catalina.core.AprLifecycleListener init 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:/Program Files/Java/jdk1.6.0/bin;D:/Program Files/apache/bin 2011-4-23 17:16:01 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 2011-4-23 17:16:01 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 803 ms 2011-4-23 17:16:02 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2011-4-23 17:16:02 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.14 .....

 

为什么呢?上网搜索了一下:

实际这是建议使用apache的apr;apr 是apache portable runtime 用上这个后可以有效的提高tomcat处理静态页面的能力.如果想使用apr的话, 实际操作很简单,

1.下载 http://tomcat.heanet.ie/native/1.1.1/binaries/win32/tcnative-1.dll 2.将 tcnative-1.dll文件放到你的jdk安装目录的bin文件夹下。比如我的jdk安装路径是:C:/Program Files/Java/jdk1.6.0_22;那么我就将tcnative-1.dll文件放到:C:/Program Files/Java/jdk1.6.0_22/bin下就行了。 3.重启Tomcat6可以看到,原来出现异常的地方变成如下提示信息: 信息: Loaded Apache Tomcat Native library 1.1.14.

 

你可能感兴趣的:(apache,tomcat,servlet,performance,library,initialization)