Error log: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not Foun D on the Java.library.path

Source: Internet
Author: User

tomcat6 error log appears:Info: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found O n the Java.library.path:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Solution:resolve by installing and configuring Apr. Tomcat Native allows Tomcat to use Apache's APR package to handle including file and network IO operations to improve performance. 1. Install: yum-y install openssl-devel 2. Download: 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. Installing the 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. Set environment variables for Apr: Vi/etc/profileexport ld_library_path= $LD _library_path:/usr/local/apr/lib Save Exit Source/etc/profile Check the Catalina.out log again and find no more errors:

Information: 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

Error log: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not Foun D on the Java.library.path

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.