Another simple way is to have start a tomcat once in 2 min using a shell
script. If tomcat instance is already
running then the ports are in use which prevents the another tomcat instance
running.

But in this case If the tomcat hangs and the port is in use by other
application, there is no means to restart it
and monitoring of tomcat is not attached here.

Regards
Rajaneesh

-----Original Message-----
From: Faisal Abdullah [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 9:29 AM
To: Tomcat Users List
Subject: Re: Tomcat monitoring scripts


On demand restarts with:
http://wrapper.tanukisoftware.org





On Wed, 12 Jan 2005 16:50:54 +0000, Didier McGillis
<[EMAIL PROTECTED]> wrote:
> btw the script I would use as a starting point, it doesnt work quite right
> on my system but I was looking for a starting point.
>
> >From: "Didier McGillis" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> >To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
> >Subject: Re: Tomcat monitoring scripts
> >Date: Wed, 12 Jan 2005 16:22:52 +0000
> >
> >Ch-Check this out.
> >Shell script
> >http://www.wespoke.com/archives/000728.php
> >
> >>From: Edd Dawson <[EMAIL PROTECTED]>
> >>Reply-To: [EMAIL PROTECTED]
> >>To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> >>Subject: Re: Tomcat monitoring scripts
> >>Date: Wed, 12 Jan 2005 15:20:53 +0000
> >>
> >>I'm looking more for something that sits on the actual servers and
probes
> >>at set intervals and takes remedial action if necessary.. i just
wondered
> >>if anyone had documented doing such a thing before.
> >>
> >>Peter Lin wrote:
> >>
> >>>JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
> >>>tomcat4 or older. in terms of restarting, you're probably going to
> >>>have to write a shell script to do that. Typically, on unix a cron job
> >>>is used.
> >>>
> >>>peter
> >>>
> >>>
> >>>On Wed, 12 Jan 2005 15:12:15 +0000, Edd Dawson
> >>><[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>>Hi
> >>>>
> >>>>Does anyone know of the location of any scripts (for Linux) that will
> >>>>monitor tomcat every x minutes and if it finds it not running will
> >>>>restart it automatically?
> >>>>
> >>>>Any suggestions would be appreciated.
> >>>>
> >>>>thanks
> >>>>Edd
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>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]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>--
> >>Edd Dawson
> >>Head of Development
> >>
> >>MitchellConnerSearson
> >>3-5 High Pavement
> >>The Lace Market
> >>Nottingham  NG1 1HF
> >>Tel +44 (0)115 959 6455
> >>Fax +44 (0)115 959 6456
> >>Direct +44 (0)115 959 6463
> >>www.choosemcs.co.uk <http://www.choosemcs.co.uk/>
> >>
> >>Confidentiality: This e-mail and its attachments are intended for the
> >>above named only and may be confidential. If they have come to you in
> >>error you must take no action based on them, nor must you copy or show
> >>them to anyone; please reply to this e-mail and highlight the error.
> >>
> >>Security Warning: Please note that this e-mail has been created in the
> >>knowledge that Internet e-mail is not a 100% secure communications
medium.
> >>We advise that you understand and observe this lack of security when
> >>e-mailing us.
> >>
> >>Viruses: Although we have taken steps to ensure that this e-mail and
> >>attachments are free from any virus, we advise that in keeping with good
> >>computing practice the recipient should ensure they are actually virus
> >>free.
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
There are many ways of going forward, but there is only one way of
standing still.

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