This discussion is archived
5 Replies Latest reply: Mar 12, 2013 12:11 AM by Ramprakash Arun RSS

Collect Thread Dump using Script and direct to separate log file

karthiksingh_dba Explorer
Currently Being Moderated
Dear Legends,

I request you to provide me some useful guide lines to collect Thread Dump using script in linux and redirect the output to a separate log file, not the STDOUT file. If it is redirecting to STDOUT then how to extract only the thread stack to a separate log file.

i used
ps -ef | grep java
kill -3 <pid> >> ss1_td.log

but it is not providing the thread stack to the log file.

Anykind of help would be appreciated much.

Regards,
Karthik

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points