The Apache Tomcat Native library which allows optimal performance in production environments was not

來源:互聯網
上載者:User

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.

 

我也出現這樣的錯誤。我按照上面的方法做了 ,發現錯誤依然如故,我又查看了其他的資料,發現要把下載下來的tcnative-1.dll放在tomcat的bin目錄下才可以。試了之後,重啟tomcat,終於可以了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.