wood burning stoves
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Automatic restart of tomcat server" Watch "Automatic restart of tomcat server" New topic

Automatic restart of tomcat server

S. M. Sabbir

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: 427

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: 16897

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Automatic restart of tomcat server
It's not a secret anymore!