Heap dump for ALM/Jetty

Question ID: 106736
0
0

We are experiencing random crashing of the ALM server. I would like to capture the heap information to a log file for viewing. Does anyone know how to set this up?

Marked as spam
Posted by (Questions: 122, Answers: 3)
Asked on March 28, 2016 5:55 pm
7 views
Answers (1)
0
Private answer

Jetty Heap Dump

1. Download PsExec and pslist from Microsoft: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
2. Put PsExec.exe and pslist.exe in any directory and note the path
3. Get the process ID for ALM go to the path in Step 2 and type: pslist ALM

**Example output from pslist.exe:**


    Name                Pid Pri Thd  Hnd   Priv        CPU Time    Elapsed Time
    ALMTrayIcon        5232   8  27  263 521280     0:00:01.216     1:33:36.061
    ALM                3404   8  72 1253 4194303     0:02:15.096     0:53:08.235
    ALM-Client         3860   8  19  587 181908     0:00:16.504     0:15:47.735
    ALM-Client         8340   8  22  729 216804     0:00:45.895     0:15:10.097

*Note the ''Pid'' for ALM. In the above example the value is 3404*

4.Open a cmd prompt and use jmap in the following example...

C:temppsexec -s ''Program FilesHPALMjavabinjmap.exe'' -dump:format=b,file=c:tempheadump.hprof

5.Hit enter and the heap dump should be created. An error level zero (0) indicates no errors occurred.

Marked as spam
Posted by (Questions: 3, Answers: 168)
Answered on March 28, 2016 6:01 pm