wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Automatic restart of tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Automatic restart of tomcat server" Watch "Automatic restart of tomcat server" New topic
Author

Automatic restart of tomcat server

S. M. Sabbir
Greenhorn

Joined: Feb 15, 2009
Posts: 21
I have two tomcat server on two different unix machine. I need to check whether both application server is running or not.
How can I check that an application server is properly running or not if It does not running I like to write a script that will automatically restart the stopped application server.
So how can I detect a server is not running??
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Let the OS take care of it: http://www.yolinux.com/HOWTO/Process-Monitor-HOWTO.html
Maybe also worth a look: http://java-monitor.com/ (even though this won't help with the restarting-issue)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16092
    
  21

Actually, I use Nagios to periodically poll the servers. It allows me to not only determine if Tomcat is running but that critical apps are performing critical functions.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: Automatic restart of tomcat server