J4 wrote: > Dear everyone, > > I am trying to use the APR based Apache Tomcat Native library on > SLES11 and it is installed in: > lrwxrwxrwx 1 root root 17 Oct 12 01:03 > /usr/lib64/libapr-1.so.0 -> libapr-1.so.0.3.3 > -rwxr-xr-x 1 root root 181112 Oct 12 01:03 > /usr/lib64/libapr-1.so.0.3.3 > > I changed the JAVA_OPTS in tomcat6.conf to read: > JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m -Djava.library.path=/usr/lib64" > but when tomcat was restarted it still gave the same message, as shown > below, which makes me think that it did not pick it up. > > > INFO: The APR based Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: > /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib > > How else should this be added? > > Best regards, J
I tried these lines: JAVA_OPTS="-Djava.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib:/usr/lib64" and also in another attempt: JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m -Djava.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib:/usr/lib64" but always had the message: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib This makes me think that the tomcat6.xml is not even read, or specifically the JAVA_OPTS are unread. The command that is run is: tomcat 23481 1 99 11:53 pts/0 00:05:10 /etc/alternatives/jre/bin/java -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start And the init.d/tomcat6 file does try to read the tomcat6.conf: # Get the tomcat config (use this for environment specific settings) TOMCAT_CFG="/etc/tomcat6/tomcat6.conf" if [ -r "$TOMCAT_CFG" ]; then . $TOMCAT_CFG fi The file is in the right place: # ls -ld /etc/tomcat6/tomcat6.conf -rw-r--r-- 1 root root 1692 Feb 11 11:53 /etc/tomcat6/tomcat6.conf Any clues? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org