APR support requires three main native components to be installed:
- APR library
- JNI wrappers for APR used by Tomcat (libtcnative)
- OpenSSL libraries
bin/tomcat-native.tar.gz .
Once the build environment is installed and the source archive is extracted, the wrapper library can be compiled using (from the folder containing the configure script):./configure && make && make install
First I need to install the APR on my local machine
that I needed to downlod the APR and the APR util in to the same machine and install it in th /usr/local/apr then I compiled the native code of the comcat then that succeed
./configure --with-apr=/usr/local/apr/
make clean && make && make install
-------------------------------------------------------------------------------------------
Check wether the tomcat uses this APR in their process -
then at this java.library.path it search as
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/sandakith/software/jdk1.5.0_06/jre/lib/i386/client:/home/sandakith/software/jdk1.5.0_06/jre/lib/i386:/home/sandakith/software/jdk1.5.0_06/jre/../lib/i386
Then what needed to be done is to include those created libs at /usr/local/apr/lib to the one of the location that it complains that it can not find that
other way is that you can edit the java,library.path - still not done:)
Then that thing in the catalina.out will not be visible and it will optimize the performance using this native libraries
No comments:
Post a Comment