Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what tomcat native library should I be using in production?

Tags:

When I compile my spring mvc app, I get this in the output:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_17\bin;......

What exactly should I use in production that this is referring to?

like image 580
Blankman Avatar asked Feb 09 '10 17:02

Blankman


People also ask

What is Apache Tomcat Native library?

The Apache Tomcat Native Library is an optional component for use with Apache Tomcat that allows Tomcat to use OpenSSL as a replacement for JSSE to support TLS connections.

What does the APR based Apache Tomcat Native library was not found mean?

It means exactly what it says: "The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path" The library referred to is bundled into an OS specific dll (tcnative-1. dll) loaded via JNI.

What is Tomcat APR?

The Apache Portable Runtime (APR) is used by Tomcat to provide a number of enhanced features and performance. For example, the APR needs to be present in order to get the increased performance provided by OpenSSL for HTTPS.

What is native lib?

Android applications can contain compiled, native libraries. Native libraries are code that the developer wrote and then compiled for a specific computer architecture. Most often, this means code that is written in C or C++.


2 Answers

Tomcat-native is a version of Tomcat that uses the highly optimized Apache Portable Runtime (APR), the same framework that powers the Apache HTTP server.

like image 124
Kevin Avatar answered Sep 18 '22 15:09

Kevin


I found a post out there:

You can safely ignore this message if you want. Basically it is telling you that an optional shared library (dll on Windows) is not found. The APR is the Apache Portable Runtime. This is a native (non-java) library that can improve the performance of Tomcat in certain situations. On both Windows and Unix/Linux you will need a C compiler to build this library.

like image 26
Aito Avatar answered Sep 20 '22 15:09

Aito