出現錯誤記錄檔:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

來源:互聯網
上載者:User

標籤:usr   orm   cal   etc   not found   處理   nec   back   提升   

tomcat6出現錯誤記錄檔:資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 

 

解決:通過安裝和配置apr解決。Tomcat Native 可以讓 Tomcat 使用 Apache 的 apr 包來處理包括檔案和網路IO操作,以提升效能。 1.安裝:yum -y install openssl-devel 2.下載:apr-1.4.6.tar.gz、apr-util-1.4.1.tar.bz2、tomcat-native-1.1.19-src.tar.gz(:http://archive.apache.org/dist/tomcat/tomcat-connectors/native/)  3.安裝apr:tar -xzf apr-1.4.6.tar.gz cd apr-1.4.6./configure && make && make install tar -xjf apr-util-1.4.1.tar.bz2cd apr-util-1.4.1

./configure --with-apr=/usr/local/apr   && make  && make install 

 tar -xzf tomcat-native-1.1.19-src.tar.gzcd /opt/tomcat-native-1.1.19-src/jni

./configure --with-apr=/usr/local/apr --with-java-home=/opt/jdk && make && make install

 4.設定apr的環境變數:vi /etc/profileexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib儲存退出source /etc/profile 再查看catalina.out日誌,發現不再報錯了:

資訊: An older version 1.1.19 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of 1.1.22

出現錯誤記錄檔:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.