To improve the performance of the Apache Tomcat Server you could use the Apache Tomcat Native library.
To install the library just execute:
# sudo aptitude install libtcnative-1
and add the following line to the file $CATALINA_HOME/bin/setenv.sh (create the file if it does not exist):
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
To verify the library is running you will find the following message in $CATALINA_HOME/logs/catalina.out:
INFO: Loaded APR based Apache Tomcat Native library 1.1.19.
Without the Apache Tomcat Native library you will find a message like:
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [...]
3 responses to “Ubuntu 10.04 & Tomcat 6: Improve performance with Apache Tomcat Native library”
[…] Ubuntu 10.04 & Tomcat 6: Improve performance with Apache Tomcat Native library | Jan Jonas’… This entry was posted in Uncategorized. Bookmark the permalink. ← JMeter Error HTTP […]
very useful tutorial. by how much will this improve performance?
Unfortunately, I’ve no information or details about how much this improves the performance.