My application requires that the Tomcat server is up and running. Di weekend our server team reboots the windows server where tomcat is running. They have to manually restart tomcat server after they reboot the windows server, but many a times the support personnel who is performing the maintenance forgets this and our application will be unavailable to the users.
As a permanent solution, I am considering the approach to add the restart commands in the reboot script that the support team will run on the windows server. Is this a good approach?
How we can avoid the manual Tomcat restart and at the same time make sure that the application hosted on Tomcat is always up.
What are the common methods to get notification to our support team if Tomcat server is not up and running.
I could say unkind things about Windows and its need for weekly reboots (presumably because some "patch Tuesday" fixes demand it), but to each his own poison.
Tomcat is available (from the Tomcat download web page) in a special Windows configuration that supports its execution as a Windows system Service. If you install that version of Tomcat it can be controlled via the Windows Service Manager, which has the ability to automatically startup Tomcat when the machine is rebooted and to cleanly shut it down as part of the Windows Shutdown process.
Sources may include data from the Fakebook Research Foundation with support from Gargle University