How to generate the Heap dump in Websphere Application Server
Heap Dump :- Heap dump is basically snapshot of the all live object which is living in the heap memory and provide the details of memory which is consume by each and every object in the memory pool
What is the use of heap dump :-
With the help of heap-dump we can find the issue of out of memory and memory leakage issue and ensure the better performance of the jvm.
We can generate the Heap dump two type.
1. Generate heap dump through wsadmin tool
Step :- Go to the profile bin of the respected server
for Example:-
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 generateHeapDump
Execute this command three times in the interval of the atleast 3 or 4 second .
See The Real Example:-
[root@localhost bin]# pwd
/WebSphere/AppServer85/profiles/AppSrv01/bin
[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 generateHeapDump
/WebSphere/AppServer85/profiles/AppSrv01/./heapdump.20161027.074650.4786.0001.phd
wsadmin>$AdminControl invoke $jvm generateHeapDump
/WebSphere/AppServer85/profiles/AppSrv01/./heapdump.20161027.074711.4786.0002.phd
wsadmin>$AdminControl invoke $jvm generateHeapDump
/WebSphere/AppServer85/profiles/AppSrv01/./heapdump.20161027.074721.4786.0003.phd
wsadmin>
Note :- After that go to the profile home location. see in Screenshot
for analyzing this file use Eclipse Heap Analyzer .
Comments
Post a Comment