How to generate a thread dump ?

Questions by kirankumar samudrala   answers by kirankumar samudrala

Showing Answers 1 - 12 of 12 Answers

Preetham R Enjamuri

  • Jan 17th, 2012
 

There is no way you can generate a thread dump the only way you can do is by issuing
kill -4
which also gives you a heap dump and thread dump

  Was this answer useful?  Yes

hector8

  • Sep 24th, 2012
 

There is two ways to generate thread dumps in linux
1. kill -3 pid(process id of jvm) ,but the thing is you will get both heap dumps and thread dumps as one file. If you want to do individually then the following one
2. go to pfofile bin and execute command as WSADMIN then enter the below one
$AdminControl invoke $jvm dumpThreads(case sensitive )

  Was this answer useful?  Yes

santha

  • Dec 7th, 2012
 

Generating Thread Dump: Two ways

1) Automatic: In real scenario is to generate thread dump, if the server is hung due to any of cause. We wont go for generate thread dump, the server it self generate. How? beautiful answer is by default this option is disable for the server, then we are configure variable for thread dump
name is IBM_THREADDUMP; value is true.. in "WAS-->Servers-->Application server-->server1--> Java and process definition --> process Definition--> Environment Entries --> New"

2) Manual: Any of home directory in Linux you have to find the process id of an particular server. then generate thread dump using " kill -9 < process id of server >"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions