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="" > > 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 exte

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

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

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 us

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 . > > That's one way to do it. My preferenc

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

RE: Thread Dumps/ Emailing Results...

2008-11-01 Thread keeplearning
gt;> 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,

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 u

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 sti

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 . 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 JVM. Yo