Details
-
Bug
-
Resolution: Fixed
-
Medium
-
6.4.1, 6.6.1, 6.7.0, 6.8.2
-
10
-
Severity 3 - Minor
-
28
-
Description
Summary
When Tomcat isn't shutdown gracefully, the PID of the Synchrony JVM isn't killed with Confluence's PID. The problem was first reported in https://jira.atlassian.com/browse/CONFSERVER-43741 but this is still an issue in case Confluence's PID is killed by catalina.sh
Steps to Reproduce
- Start Confluence.
- Install some add-ons so Confluence takes more than 30s to be shutdown.
- Shutdown Confluence.
Expected Results
When Confluence's PID is killed, Synchrony's PID should also be killed.
Actual Results
Only Confluence's PID is killed, letting the Synchrony JVM up and running. The bug is only triggered when the following message appears:
Tomcat did not stop in time. To aid diagnostics a thread dump has been written to standard out. Killing Tomcat with the PID: XXXX The Tomcat process has been killed.
Workaround
- You can edit the catalina.sh:
- Stop Confluence.
- Edit the catalina.sh file(found inside of the /bin directory).
- Locate the following strings:
if [ -f "$CATALINA_PID" ]; then PID=`cat "$CATALINA_PID"` echo "Killing Tomcat with the PID: $PID" kill -9 $PID
- Insert the following:
SYNC_PID="`cat $CATALINA_BASE/temp/synchrony.pid`" echo "Killing Synchrony with the PID: $SYNC_PID" kill -9 $SYNC_PID
- It will look like:
if [ -f "$CATALINA_PID" ]; then SYNC_PID="`cat $CATALINA_BASE/temp/synchrony.pid`" echo "Killing Synchrony with the PID: $SYNC_PID" kill -9 $SYNC_PID PID=`cat "$CATALINA_PID"` echo "Killing Tomcat with the PID: $PID" kill -9 $PID
- Save the changes and start Confluence
- You can manually kill -9 Synchrony's PID.
Attachments
Issue Links
- is caused by
-
CONFSERVER-43741 Synchrony doesn't stop on Confluence stop
- Closed