Write a perl script using the perl::LWP module from cpan.  You could even get really 
complex and write some output to a web page that tells you how memory is being used, 
store that information into a database for statistical reporting purposes, in addition 
to emailing/paging the system administrator that problems might be occuring.  

You could easily figure out which ones are down by the lack of a response.  No 
request, server must be down, do something!!

Heck, I am going to start writing something tonight.  

-----Original Message-----
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 3:36 PM
To: Tomcat Users List
Subject: Re: How to detect tomcat down


You should know the port/host/IP that each of them are running on. You 
should be able to request them directly if you have the tomcat 
standalone service running, which you may or may not. All of this is 
configured in server.xml

Daniel Gibby

Simon Zeng wrote:

>I can come up with a WatchDog to do the monitoring/restart. But We have a
>few tomcat instance runing in load balance mode with one Apache dispatching
>request to them. How could we figure out if one/more(not all) tomcat
>instances down and how to decide which ones they are? Basically the question
>is can we bypass Apache to go directly to Tomcat since we know where they
>are?
>
>Thanks,
>-Simon
>
>-----Original Message-----
>From: QM [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 18, 2004 4:40 PM
>To: Tomcat Users List
>Subject: Re: How to detect tomcat down
>
>
>On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote:
>: I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to
>: monitor the tomcat 
>: server and restart it automatically if it is detected down. I did a lot
>: research but could not find any convincing way to do it.
>
>Some commercial monitoring products perform a request to an
>(unprotected) URI and, in the event of a failure, perform some specified
>action. -that is, call the start script.
>
>Otherwise, you could have Tomcat started by a (custom) watchdog, the
>idea being that it kicks the start script if the expected process isn't
>running.  I recall iPlanet 4 did something similar.
>
>As for free + out-of-the-box solutions, I haven't seen any...
>
>-QM
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to