File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 430

Let the OS take care of it:
Maybe also worth a look: (even though this won't help with the restarting-issue)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Automatic restart of tomcat server
It's not a secret anymore!