Re: Thread Dumps/ Emailing Results...

2008-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuek, Caldarale, Charles R wrote: From: keeplearning [mailto:[EMAIL PROTECTED] Subject: Thread Dumps/ Emailing Results... So, do i need to supply process id with this command. Like: kill -3 process id. That's one way to do it. My preference

Re: Thread Dumps/ Emailing Results...

2008-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: keeplearning [mailto:[EMAIL PROTECTED] Subject: RE: Thread Dumps/ Emailing Results... 1) I tried using following to mail the file as attachment (we are also using MS Outlook): mail -s Subject:test

RE: Thread Dumps/ Emailing Results...

2008-11-04 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Thread Dumps/ Emailing Results... I have written a script to check for OOMs by checking catalina.out for OutOfMemoryError. When such an error is detected, I run the following commands (apologies for the line wrapping

Re: Thread Dumps/ Emailing Results...

2008-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Thread Dumps/ Emailing Results... I have written a script to check for OOMs by checking catalina.out for OutOfMemoryError. When such an error

Re: Thread Dumps/ Emailing Results...

2008-11-04 Thread Rainer Jung
Christopher Schultz schrieb: Also, in JDK 6 and above, there's another intriguing option: -XX:OnOutOfMemoryError=command That's pretty cool. For the time being, we're on JRE 1.5, so that's not an option. I'll look into it as we look forward to upgrading. The above will run an external

RE: Thread Dumps/ Emailing Results...

2008-11-01 Thread Caldarale, Charles R
From: keeplearning [mailto:[EMAIL PROTECTED] Subject: Thread Dumps/ Emailing Results... So, do i need to supply process id with this command. Like: kill -3 process id. That's one way to do it. My preference is to use the jstack tool from the JDK, assuming you're running a 1.5 or 1.6 Sun

RE: Thread Dumps/ Emailing Results...

2008-11-01 Thread keeplearning
Thanks for your reply, Chuck. couple of quick questions: 1) I tried using following to mail the file as attachment (we are also using MS Outlook): mail -s Subject:test [EMAIL PROTECTED] test.log But it sends the output in the body rather than as an attachment. I even tried uuencode but still

RE: Thread Dumps/ Emailing Results...

2008-11-01 Thread Caldarale, Charles R
From: keeplearning [mailto:[EMAIL PROTECTED] Subject: RE: Thread Dumps/ Emailing Results... 1) I tried using following to mail the file as attachment (we are also using MS Outlook): mail -s Subject:test [EMAIL PROTECTED] test.log That's using a Linux mailer, not Outlook; can't help you

RE: Thread Dumps/ Emailing Results...

2008-11-01 Thread keeplearning
PROTECTED] Subject: RE: Thread Dumps/ Emailing Results... 1) I tried using following to mail the file as attachment (we are also using MS Outlook): mail -s Subject:test [EMAIL PROTECTED] test.log That's using a Linux mailer, not Outlook; can't help you there. From Outlook, I just insert

RE: Thread Dumps/ Emailing Results...

2008-11-01 Thread Caldarale, Charles R
From: keeplearning [mailto:[EMAIL PROTECTED] Subject: RE: Thread Dumps/ Emailing Results... I can get pid using ps -ef | grep tomcat. Not likely. Tomcat is a Java program, so unless something on the command line includes the symbol tomcat (mine doesn't), that won't find it. Again, using