Tuesday, 5 November 2013

How to create Thread Dumps



Before generate a thread dump.1st you recognize
What is thread dump and why we want to come up(generate) it?
       Thread dump is the snap shot of all threads in the JVM at the time of dump creation. during dump file we will get the knowledge about threads like active threads, decorated(hung) threads, dead lock, runnable and inactive threads.
       once our JVM reports the threads decorated in systemOut.log file, then we tend to generate thread dump to research the rationale behinds thread dumps.
       From WebSphere Application Server Version V8.0 on words you'll generate the Dumps(Heap Dump and Thread Dumps) by console.
Generally I might prefer to generate Dumps from command prompt by using wsadmin command
Go to command prompt and go to application profile bin
C:\IBM\WEBSPHERE\AppSrv01_Profile\bin>wsadmin.bat localhost soapport number(8880) conntype soap


wsadmin>set jvm [$AdminControl completeObjectName type=JVM,process=server1,*]

wsadmin>$AdminControl invoke $jvm dumpThreads


The Thread dump was hold on in profile root directory like bellow



To exit the wsadmin script
wsadmin>quit




** GO GREEN AND SAVE THE EARTH – Chandu Chowdary **

No comments:

Post a Comment