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

In the default tomcat deployment, you may see this error in regard to missing tomcat native library.


INFO | jvm 1 | 2020/12/04 10:01:09 | INFO: Command line argument: -Djava.library.path=/opt/tomcat8/lib
INFO | jvm 1 | 2020/12/04 10:01:09 | INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/opt/tomcat8/lib]
INFO | jvm 1 | 2020/12/04 10:02:45 | INFO: Command line argument: -Djava.library.path=/opt/tomcat8/lib
INFO | jvm 1 | 2020/12/04 10:02:45 | INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/opt/tomcat8/lib]

This is not a critical component so in most cases the alert/warning can be ignored. However if you are annoyed by it, and you want it fixed, you may install it using yum in centos or apt-get install in ubuntu

yum install tomcat native

Package Arch Version Repository Size
==============================================================================================================================================
Installing:
tomcat-native x86_64 1.2.23-1.el7 epel 76 k

Transaction Summary
==============================================================================================================================================

After the installation of the missing package, make sure to restart tomcat.

 

  • tomcat, native, library, error, missing
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 Catalina cache warnings: Unable to add the resource to the cache

IssueApache Tomcat logs, e.g. logs/catalina.out continuously report: Unable to add the resource...

 How to find the correct Java Heap Settings for your Server

By default Tomcat is configured to use a minimum of 64 MB of RAM and a maximum of 128 MB of RAM...

 Tomcat SSL without keystore

Starting from tomcat8 we can configure the tomcat SSL protocol without the need of a keystore.It...

 Importing an SSL certificate into the keystore

In this short tutorial we will present how to import a pem certificate into a pfx and then into a...

 Increase memory allocation in tomcat

To increase memory allocation in tomcat you need to: configure the following in the...