Re: How ot monitor hung tomcat/apache processes?

2010-09-23 Thread Juha Laiho
On 09/22/2010 03:42 PM, Darryl Lewis wrote: Are you trying to monitor from the same computer that tomcat is running on? That's not a good idea. What happens if the entire system crashes...you won't get any data/alerts. End to end uses another machine to monitor the first. You could monitor

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Darryl Lewis
In my experience, the PID can still exist of tomcat but a Java heap crash has stopped it responding. Checking a PID will not check if the application is responding. You're better to do some sort of end to end monitoring On 22/09/10 10:03 PM, Mendiratta, Shashank shashank_mendira...@intuit.com

RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
To: Tomcat Users List Subject: Re: How ot monitor hung tomcat/apache processes? In my experience, the PID can still exist of tomcat but a Java heap crash has stopped it responding. Checking a PID will not check if the application is responding. You're better to do some sort of end to end

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Darryl Lewis
Lewis [mailto:darryl.le...@unsw.edu.au] Sent: Wednesday, September 22, 2010 5:38 PM To: Tomcat Users List Subject: Re: How ot monitor hung tomcat/apache processes? In my experience, the PID can still exist of tomcat but a Java heap crash has stopped it responding. Checking a PID will not check

RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
: Re: How ot monitor hung tomcat/apache processes? It depends on the application you are running, but a simple test would be to access the webpage (ensuring part of it is served from Tomcat, not apache) and check for an expected response. For example, a simple jsp page that prints out ok You can

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Darryl Lewis
List Subject: Re: How ot monitor hung tomcat/apache processes? It depends on the application you are running, but a simple test would be to access the webpage (ensuring part of it is served from Tomcat, not apache) and check for an expected response. For example, a simple jsp page that prints out

RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
[mailto:darryl.le...@unsw.edu.au] Sent: Wednesday, September 22, 2010 6:12 PM To: Mendiratta, Shashank; Tomcat Users List Subject: Re: How ot monitor hung tomcat/apache processes? Are you trying to monitor from the same computer that tomcat is running on? That's not a good idea. What happens if the entire

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 13:08, Darryl Lewis wrote: In my experience, the PID can still exist of tomcat but a Java heap crash has stopped it responding. Checking a PID will not check if the application is responding. Obviously, I exist whether Tomcat is running or not. p 0x62590808.asc

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 13:54, Mendiratta, Shashank wrote: So I have to come up with a cript also which how the system is serving pages if its to slow . then to restart the JVM . Really? That sounds, well, a little drastic... p 0x62590808.asc Description: application/pgp-keys signature.asc

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 13:03, Mendiratta, Shashank wrote: Hi , I am working on a monitoring system to find out hung tomcat/apache processes. Instead of looking for problems so you can restart the JVM, trying looking at the actual problem and fixing it, then you won't have to invent crazy solutions.

RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
Hi .. can you share the script ?? -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, September 22, 2010 9:52 PM To: Tomcat Users List Subject: Re: How ot monitor hung tomcat/apache processes? On 22/09/2010 13:54, Mendiratta, Shashank wrote: So I have to come up

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 17:29, Mendiratta, Shashank wrote: Hi .. can you share the script ?? Which script? You wrote it, according to the below: On 22/09/2010 13:54, Mendiratta, Shashank wrote: So I have to come up with a cript also which how the system is serving pages if its to slow . then to

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shashank, On 9/22/2010 8:30 AM, Mendiratta, Shashank wrote: Thanx , about that here the outbound port 80 is blocked so we cannot wget , moreover this wont solve the problem as to why the the services are getting hung. Hmm. Can you monitor from

Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Leon Kolchinsky
Hi, You can try several approaches (I'll list 2 that I'm aware of): 1) Automatic restarts on OutOfMemory errors: Add the following to CATALINA_OPTS: -XX:OnOutOfMemoryError=/usr/sbin/restart_tcserver Write your restart_tcserver (you may send an e-mail notification from it etc.) 2) This is what