You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrew Rapp <al...@yahoo.com> on 2009/03/26 19:01:28 UTC

Tomcat not shutting down on Mac

Hi,

Just downloaded Tomcat 5.5.27.  Starts up and runs great, but it doesn't shut down properly.  I run ./shutdown 

Using CATALINA_BASE:   /Users/andrew/Downloads/apache-tomcat-5.5.27
Using CATALINA_HOME:   /Users/andrew/Downloads/apache-tomcat-5.5.27
Using CATALINA_TMPDIR: /Users/andrew/Downloads/apache-tomcat-5.5.27/temp
Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home

but the process is still going:

  501 57712     1   0   0:00.18 ttys004    0:01.80 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -Djava.util.logging.config.file=/Users/andrew/Downloads/apache-tomcat-5.5.27/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/andrew/Downloads/apache-tomcat-5.5.27/common/endorsed -classpath :/Users/andrew/Downloads/apache-tomcat-5.5.27/bin/bootstrap.jar:/Users/andrew/Downloads/apache-tomcat-5.5.27/bin/commons-logging-api.jar -Dcatalina.base=/Users/andrew/Downloads/apache-tomcat-5.5.27 -Dcatalina.home=/Users/andrew/Downloads/apache-tomcat-5.5.27 -Djava.io.tmpdir=/Users/andrew/Downloads/apache-tomcat-5.5.27/temp org.apache.catalina.startup.Bootstrap start

Then I run ./shutdown.sh again and get:

Using CATALINA_BASE:   /Users/andrew/Downloads/apache-tomcat-5.5.27
Using CATALINA_HOME:   /Users/andrew/Downloads/apache-tomcat-5.5.27
Using CATALINA_TMPDIR: /Users/andrew/Downloads/apache-tomcat-5.5.27/temp
Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Mar 26, 2009 1:00:45 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop: 
java.net.ConnectException: Connection refused

At this point the server is not listening anymore but the process is still running.  I'm running Mac OS 10.5.6 and using the default Tomcat configuration.  Thanks,

Andrew

RE: Tomcat not shutting down on Mac

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Andrew Rapp [mailto:alrapp@yahoo.com]
> Subject: Tomcat not shutting down on Mac
> 
> Just downloaded Tomcat 5.5.27.  Starts up and runs great, but it
> doesn't shut down properly.

This is almost always caused by unmanaged, non-daemon threads started by a webapp.  The webapp should be keeping track of any threads it creates, and insure that they exit when the webapp is stopped.  You should be able to use JConsole or jstack to figure out what's still running after the shutdown script is run.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org