2007-04-12

在Tomcat 5.5下使用APR

在windwos下启动Tomcat 5.5下时,命令行窗口会提示:

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.5\bin;.;C:\WINDOWS\system32; ...

为了提高Tomcat的性能,应让Tomcat使用APR,Apache Portble Runtime。具体信息参见http://tomcat.apache.org/tomcat-5.5-doc/apr.html

在windows安装方法:下载编译好的dll文件,tcnative-1.dll,把它复制到%SystemRoot%\system32目录下即可。 

1 条评论:

  1. 按照Tomcat 5.5的文档,tcnative-1.dll应该被放到
    %SystemRoot%\system32
    目录下。我试了一下,放到Tomcat的bin目录下也奏效。

    回复删除