monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failed on "slow response time"


From: Romain Pelisse
Subject: Re: Failed on "slow response time"
Date: Thu, 5 Jun 2014 10:43:48 +0200

Ok, of course, the minute I asked, is the minute I found... According to a comment on this blog entry [1], one can test the output of script:

"if failed /etc/init.d/tomcat status does not output 'And listening on' for 3 cycles then alert for 5 cycles and restart"

I can therefore just make my own little script, test the average time and returning whatever I need.

[1] http://blog.rimuhosting.com/2011/01/27/setting-up-monit-with-tomcat/


On 5 June 2014 10:11, Romain Pelisse <address@hidden> wrote:
Hi all,

I'm considering using Monit to automatically restart a Java based app running on top of JBoss when the app start suffering from OutOfMemorry or just become sluggish. 

The best way to detect that is to actually react on a slow response time - or at least a response time average that's rising. Is there an easy to do that with monit ? Can someone simply "plug" a custom script/function to define a new "failed" statement ?

--
Romain PELISSE,
"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it" -- Terry Pratchett
Belaran ins Prussia (blog)     (... finally up and running !)



--
Romain PELISSE,
"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it" -- Terry Pratchett
Belaran ins Prussia (blog)     (... finally up and running !)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]