5 Replies Latest reply: Mar 12, 2013 2:11 AM by Ramprakash Arun RSS

    Collect Thread Dump using Script and direct to separate log file

      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.