Monday 10 April 2017

Generating heapdumps and thread dumps in WAS

Heapdumps and Thread dumps/Javacores play a major part in troubleshooting issues with WAS. In this section, we will learn how to generate heapdumps and thread dumps/java cores.

1) Generating Thread dumps

We can generate thread dumps using below kill command.

kill -3 <pid_of_WAS_JVM>

This will generate javacore.yyyymmdd.hhmmss.pid.part.txt file in profile_root directory.


Another way to generate javacores is using wsadmin. Login to wsadmin and trigger below commands :

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

wsadmin>$AdminControl invoke $jvm dumpThreads



We can also create java core from admin console (WAS 8.5 and later)



2) Generating heap dumps

We can generate heapdumps using wsadmin like below.

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

wsadmin>$AdminControl invoke $jvm generateHeapDump





Alternatively, we can generate heapdumps using Admin Console.



No comments:

Post a Comment