Generate ThreadDump in Websphere Application Server
Thread-Dump is the snapshot of the state of thread in JVM. thread dump are used to diagnose the application performance issue like deadlock and hung thread.
Taking thread in Websphere application server .
1. generate thread dump through wsadmin command
Step1 .
cd /opt/IBM/WebSpeher/AppServer/Profiles/AppSrv01/bin
./wasadmin -user wasadmin -password wasadmin
Step 2. set the parameter
<wsadmin> set jvm [$AdminControl completeObjectName type =JVM, process=<servername>,*]
Step 3. Invoke the command.
<wsadmin>$AdminControl invoke $objectName dumpThreads
Execute this command three times in the interval of the atleast 3 or 4 second .
Note :- See Real Example
[root@localhost bin]# ./wsadmin.sh -user wasadmin -password wasadmin
WASX7209I: Connected to process "dmgr" on node localhostCellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7029I: For help, enter: "$Help help"
wsadmin>set jvm [$AdminControl completeObjectName type=JVM,process=server1,*]
WebSphere:name=JVM,process=server1,platform=proxy,node=localhostNode01,j2eeType=JVM,J2EEServer=server1,version=8.5.0.0,type=JVM,mbeanIdentifier=JVM,cell=localhostCell01,spec=1.0
wsadmin>$AdminControl invoke $jvm dumpThreads
wsadmin>$AdminControl invoke $jvm dumpThreads
wsadmin>$AdminControl invoke $jvm dumpThreads
wsadmin>
Comments
Post a Comment