P1: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;
S1:實際這是建議使用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.