How to install and use Apache Tomcat Native in Debian Squeeze

The Apache Tomcat Native or tc-native is composed of JNI native wrappers to Apache Portable Runtime (APR).   According to the tc- native documentation, it provides performance benifits especially if Web Applications are using SSL or serve large amount of static data.

Tc-native do not have binary distribution for Debian or Linux for that matter.   You build from the sources that come with each Tomcat release.   It can be found as tarball ${CATALINA_HOME}/bin/tomcat-native.tar.gz.   Tc-native is also available as a separate download from the Tomcat Native website in the link that follows.   This is also the latest version.

http://tomcat.apache.org/download-native.cgi

Whichever copy you use,  you need the following components installed in your system to build tc-native.