You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/08/07 20:44:32 UTC

svn commit: r1511434 - /tomcat/trunk/bin/catalina.sh

Author: markt
Date: Wed Aug  7 18:44:32 2013
New Revision: 1511434

URL: http://svn.apache.org/r1511434
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45428
Trigger a thread dump to aid diagnostics if Tomcat fails to stop in a timely manner.

Modified:
    tomcat/trunk/bin/catalina.sh

Modified: tomcat/trunk/bin/catalina.sh
URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/catalina.sh?rev=1511434&r1=1511433&r2=1511434&view=diff
==============================================================================
--- tomcat/trunk/bin/catalina.sh (original)
+++ tomcat/trunk/bin/catalina.sh Wed Aug  7 18:44:32 2013
@@ -461,7 +461,8 @@ elif [ "$1" = "stop" ] ; then
         fi
         if [ $SLEEP -eq 0 ]; then
           if [ $FORCE -eq 0 ]; then
-            echo "Tomcat did not stop in time. PID file was not removed."
+            echo "Tomcat did not stop in time. PID file was not removed. To aid diagnostics a thread dump has been written to standard out."
+            kill -3 `cat "$CATALINA_PID"`
           fi
         fi
         SLEEP=`expr $SLEEP - 1 `



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