zoukankan      html  css  js  c++  java
  • The Apache Tomcat Native library which allows optimal performance in production environments

    Tomcat6启动的时候出现下面这样的提示:

    2007-12-31 9:51:51 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:/Sun/jre1.6.0_03/bin;.;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;D:/oraclexe/app/oracle/product/10.2.0/server/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;.;D:/Sun/jdk1.6.0_03/bin;D:/Sun/jdk1.6.0_03/jre/bin;D:/ApacheTomcat/lib;

    实际这是建议使用apache的apr;apr 是apache portable runtime 用上这个后可以有效的提高tomcat处理静态页面的能力.

    如果想使用apr的话, 实际操作很简单,

    下载http://tomcat.heanet.ie/native/1.1.1/binaries/win32/tcnative-1.dll

    将这个文件复制到C:/WINDOWS/system32下面,然后重新启动tomcat,就会发现tomcat 的控制台信息为:

    2007-12-31 9:55:40 org.apache.catalina.core.AprLifecycleListener init
    信息: An older version 1.1.8 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then 1.1.10
    2007-12-31 9:55:40 org.apache.catalina.core.AprLifecycleListener init
    信息: Loaded Apache Tomcat Native library 1.1.8.

    我也出现这样的错误。我按照上面的方法做了 ,发现错误依然如故,我又查看了其他的资料,发现要把下载下来的tcnative-1.dll放在 tomcat\bin 目录下才可以。试了之后,重启tomcat,终于可以了。

    参考:

    http://blog.csdn.net/ning313180989/article/details/5366832

  • 相关阅读:
    作业3.14下
    作业3.14上
    作业3.13 下
    作业 3.13上
    2017.3.10上午
    2017.3.9上午
    2017.3.23-morning
    2017.3.22-morning
    2017.3.21-afternoon
    2017.3.21-morning
  • 原文地址:https://www.cnblogs.com/orientsun/p/2753279.html
Copyright © 2011-2022 走看看