How to collect Thread dump and Heap Dump ?

How to collect Thread dump and Heap Dump ?

For collecting Thread dump:

Login to the application and in the browser invoke the URL  http://servername:port/jsp/ThreadDump.jsp 

If the application is running in command mode , then at the time the issue occurrence you can collect thread dump by pressing CTRL+Fn+B ( For Windows) and CTRL+\ ( for Linux) . This will generate thread dump in the command prompt. Copy the complete text and paste it in Notepad/Wordpad as Threaddump1.txt. Sameway proceed to take two more dumps by using the same commands.

For collecting Heap Dump:

It is necessary to install JDK and JMAP. Once you install this in Windows machine you can generate the heap dump using the command ,

psexec -s jmap -dump:format=b,file=cheap.bin <PID>

PID - It is the process ID

Direct Links to download,



After downloading JMAP, extract and move to Java folder under program files where JDK usually installs by default.

So after executing the command, you get confirmation as below.



cheap.bin will be stored under mostly in C:\Windows\System32\cheap.bin


Other ways to collect heapdump,

Apart from the above details collect the Logs folder present in the ServiceDeskPlus-MSP folder for analysis which has Currentqueriesinformation.html,connectiondump files.


For Linux :

jmap -dump:file=heapdump.bin pid


Herewith i have attached 2 Gif on how to generate Thread dump and heap dump in Linux.

 



                  New to ADSelfService Plus?

                    • Related Articles

                    • Performance Debug

                      For Performance/slowness issues instead of taking Threaddump manually or instead of invoking PerformanceTool make use of the below URL when the issue occurs, http://servername:portnumber/servlet/PerformanceDebug The above URL works even when the ...
                    • How to address Performance issue ?

                      Application will face the performance issue because of couple of reasons. 1. System requirements are not met: Refer this link to ensure the specifications are met as per the standards. 2. Application architecture should be 64-bit for better ...
                    • How to enable Performance monitoring tool ?

                      To analyze Performance issues, logs and tuning alone won't be sufficient. Hence, we need to follow a few steps to enable the Performance Monitoring tool, which will monitor the application's performance and automatically collects the data when the ...
                    • Inputs required for analyzing Performance Issues

                      We need a couple of details to analyze Performance issue. So, please send the below details : Below mentioned details should be gathered before restarting the application. 1. Let us know whether you are taking Scheduled full backup or backup without ...
                    • Basic Performance Issues RCA On Postgres DB Cx

                      Whenever cx faces slowness in PG SQL Setup, below are the first step of actions to check and proceed based on our previous performance tickets. 1. Antivirus are main cause of slowness, high CPU, and memory consumption of PGSQL in many cx tickets. ...