Tomcat fails to shutdown gracefully with shutting down Spotfire Server

Tomcat fails to shutdown gracefully with shutting down Spotfire Server

book

Article ID: KB0070909

calendar_today

Updated On:

Products

Spotfire Server

Description

Resolution:
When shutting down Spotfire Server on a Unix based Operating Systems, Tomcat may sometimes throw the following errors:

===

SEVERE: Could not contact localhost:9005. Tomcat may not be running.
Jan 05, 2016 12:12:23 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
===
 

Issue/Introduction

Tomcat fails to shutdown gracefully with shutting down Spotfire Server

Resolution

Excluding any antivirus or firewalls that may be blocking the SHUTDOWN port , make sure that there is a time gap between any start/shutdown/restart events of the Spotfire Server. Tomcat may take a while to shutdown all services and if the server is restarted immediately after a shutdown, it may not release all the ports. This can lead to errors during any later shutdown operations.

Based on the environment, make sure that the shutdown port is in listening mode (using netstat) before restarting the server.

Additional Information

"Tomcat shutdown VERY slow after calling shutdown.sh?", Stack Overflow