Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Trigger a thread dump to aid diagnostics if Tomcat fails to stop in a timely manner.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1511434 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Aug 7, 2013
1 parent 2710b05 commit f5d18d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/catalina.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 `
Expand Down

0 comments on commit f5d18d7

Please sign in to comment.