How to generate a Heap and Thread dump in ALM

The heap dump are useful to find cache, and memory issues in ALM , by generating the heap dumps and thread dumps, support can review what is on the ALM process memory and move forward with the investigation of the memory leaks.

How to Take Heap Dump of QC Service

  1. Download PsExec (Google search for it if it is not found in the following URL http://technet.microsoft.com/en-us/sysinternals/bb897553)
  2. Put PsExec.exe in C:\Program Files\HP\ALM\java
  3. Run CMD.
  4. Issue the 4 following commands. Change your drive letter in case is not C:\, and look for the install directory of ALM that contains java folders:
    1. C:
    2. cd C:\Program Files\HP\ALM\java
    3. set JAVA_HOME=C:\Program Files\HP\ALM\java
    4. psexec -s “%JAVA_HOME%\bin\jmap.exe” -dump:format=b,file=heap.bin 12868
    5. replace 12868 with the PID (Use Task Manager)

image text
Select View> select Columns

image text

Then locate the ALM.exe PID column and replace it in the above command

File heap.bin will be dumped in C:\windows\system32

How to Take Thread Dump of QC Service

  1. Download PsExec (Google search for it if it is not found in the following URL http://technet.microsoft.com/en-us/sysinternals/bb897553) Put PsExec.exe in C:\Program Files\HP\ALM\java
  2. Run CMD.
  3. Issue the 4 following commands. Change your drive letter in case is not C:\, and look for the install directory of ALM that contains java folders:
    1. C:
    2. cd C:\Program Files\HP\ALM\java
    3. set JAVA_HOME=C:\Program Files\HP\ALM\java
    4. psexec -s “%JAVA_HOME%\bin\jstack.exe” -l 12868 > C:\Temp\thread_dump.txt
      replace 4676 with the PID (Use Task Manager)
      replace C:\Temp\thread_dump.txt with the path where the thread dump should be exported to
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s