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