[Liferay6.2] Boot tomcat hint APR cannot be found in the Java Class Library path workaround

Source: Internet
Author: User
Tags apache tomcat

Problem description

After you start Liferay, printing out in the console prints the following information:

Info: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found O n the Java.library.path: ...

This means that the APR (Apache Portable runtime) based on the Apache Tomcat local library, which achieves the best performance in the production environment, cannot be found in the Java Class Library path.

While this problem does not affect Tomcat's normal operation, it is worth taking some time to focus on the performance of Tomcat.

Workaround

Download the latest tomcat-native-1.1.33-win32-bin.zip from the Tomcat official website http://tomcat.apache.org/download-native.cgi.

The package contains three types of tcnative-1 for 32-bit, 64-bit (x64), and Intel Itanium 64-bit CPU architectures (i64). DLL, you must choose a file that matches our computer or server CPU.

My computer is 64 for the schema, so select the Tcnative-1.dll file under the x64 folder.

Copy the Tcnative-1.dll to a location that the Java class Library can find, that is, which paths are omitted after the message, usually in the bin directory of the JDK or under the C:\Windows\system32 directory.

This article copies Tcnative-1.dll to the D:\Program files\java\jre1.6.0_45\bin directory, restarts Tomat, and normally displays Apache Tomcat Native Library and Apr version information.

Info: Loaded Apr based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.

about Apache Tomcat Native Library

This is Apache's set of localized sockets, Thread, IO components to improve Tomcat performance, which means it has advanced IO capabilities, OS-level feature calls, and local process processing, all of which make Tomcat more like a Web Server (like a Pache), rather than being used to interpret JSPs, which means that individual Tomcat is promoted as the server's throughput performance.

[Liferay6.2] Boot tomcat hint APR cannot be found in the Java Class Library path workaround

Related Article

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.