Re: thread dumps catalina.out

2009-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 keeplearning, On 9/2/2009 3:09 PM, keeplearning wrote: Sorry. But I didn't understand how using 2 terminals would help me with the questions I posted. Then you need to do a 'man tee' and consider what Jim's trick is actually doing. - -chris

Re: thread dumps catalina.out

2009-09-02 Thread Jim Cox
FWIW, I usually do a tail/tee on catalina.out in a term, then do the kill -QUIT tomcat PID from another term, then kill the tail/tee combo which leaves me with a reasonably clean thread dump. For example: Terminal A: prompt$ tail -f /usr/local/tomcat/logs/catalina.out | tee

RE: thread dumps catalina.out

2009-09-02 Thread Caldarale, Charles R
From: keeplearning [mailto:p_sodh...@yahoo.com] Subject: thread dumps catalina.out I have been told that if I do kill -3 process id, it will send the thread dumps to catalina.out. I prefer to use jstack, since I can control where the output goes for each dump. - Chuck THIS

Re: thread dumps catalina.out

2009-09-02 Thread keeplearning
Sorry. But I didn't understand how using 2 terminals would help me with the questions I posted. Jim Cox-2 wrote: FWIW, I usually do a tail/tee on catalina.out in a term, then do the kill -QUIT tomcat PID from another term, then kill the tail/tee combo which leaves me with a reasonably

Re: thread dumps catalina.out

2009-09-02 Thread Rainer Jung
On 02.09.2009 21:05, Jim Cox wrote: FWIW, I usually do a tail/tee on catalina.out in a term, then do the kill -QUIT tomcat PID from another term, then kill the tail/tee combo which leaves me with a reasonably clean thread dump. For example: Terminal A: prompt$ tail -f

Re: thread dumps catalina.out

2009-09-02 Thread Jim Cox
Nothing magical to the two terms, just makes it easier to have a tail/tee combo running while issuing the kill -QUIT cmd (v. via job control, e.g). For example, in terminal A: prompt#tail -f /usr/local/tomcat/logs/catalina.out | tee /tmp/tomcat.dump.A Now in terminal B: prompt#ps -aef | egrep