Feel free to shoot this down in flames, but wouldn't the JMX approach be more appropriate?
If the only connector you have is the mod_jk, then testing for serving of pages will be a bit of a bugger to write, but an attempt to connect to the Tomcat instance MBean ( ServerLifeCycleListener? ) would be an immediate check - no? Surely, this is one of the things that JMX is designed for ... Dave ( Currently reading up on JMX ... sorry ;) -----Original Message----- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 8:04 PM To: 'Tomcat Users List' Subject: How to detect tomcat down Hi, 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. Another issue, I am running tomcat load balancing with mod_jk. I would like to know from mod_jk.log (or anywhere else?) which tomcat instance has problem (if it happens). But I could not find how to put the information there. Those flags in mod_jk documentation does not work for me. I would highly appreciate it if anyone here could help me out. Thanks, -Simon The contents of this email and any attachments are sent for the personal attention of the addressee(s) only and may be confidential. If you are not the intended addressee, any use, disclosure or copying of this email and any attachments is unauthorised - please notify the sender by return and delete the message. Any representations or commitments expressed in this email are subject to contract. ntl Group Limited --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
