jsvc used to stop and start my tomcat server very quickly (15-30 seconds). Recently, I noticed it stops right away but takes about 3 minutes to start. (I of course don't know what I changed.) I have tried: 1.recompiling jsvc, 2.using the newest native commons-daemon-1.0.3-bin-linux-x86_64.tar.gz and commons daemon commons-daemon-1.0.3-bin.tar.gz with no improvement.
I must be missing something very basic. Any help would be appreciated. mas System details: tomcat 6.0.18 java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode) CentOS release 5.2 (Final) Linux 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux the start up script: # Source function library. . /etc/init.d/functions # Adapt the following lines to your configuration JAVA_HOME=/usr/java/jdk1.6.0_20 CATALINA_HOME=/home/apache-tomcat-6.0.18 DAEMON_HOME=/home/apache-tomcat-6.0.18/bin TOMCAT_USER=tomcat CATALINA_OPTS=" -Djava.awt.headless=true -Xmx1g -Xms1g -Xincgc -XX:MaxPermSize=256m " CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar start(){ $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_HOME/temp \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap echo "starting: " $CATALINA_HOME echo "tomcat user: " $TOMCAT_USER } stop(){ $DAEMON_HOME/jsvc \ -stop \ -pidfile /var/run/jsvc.pid \ org.apache.catalina.startup.Bootstrap echo "stopping tomcat: " $CATALINA_HOME echo "tomcat user: " $TOMCAT_USER } case "$1" in start) # # Start Tomcat # start ;; status) status jsvc ;; stop) # # Stop Tomcat # stop ;; restart) stop start ;; *) echo "Usage tomcat6.0.18 start/stop/restart/status" exit 1;; esac --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org