Summary
Question
How to enable GC logs on ALM or AgM and read them
Answer
To enable GC (Garbage Collection) logs on ALM or AgM do the following...
1) Open the "wrapper.conf" file on the server, typically located in the following paths...
On Windows...
<drive>\ProgramData\HP\ALM\wrapper\wrapper.conf
Add the following value: wrapper.java.additional.<number>=-Xloggc:<drive>/<path>/<file>
On Linux...
For example: wrapper.java.additional.33=-Xloggc:C:/ProgramData/HP/ALM/log/GCLogs.txt
/opt/hp/agm/wrapper/wrapper.conf
Add the following value: wrapper.java.additional.<number>=-Xloggc:<drive>/<path>\<file>
For example: wrapper.java.additional.25=-Xloggc:/opt/hp/agm/log/GCLogs.txt
Note...
Mind that for the <number> specify, typically, the next number in the list that is not used. Therefore if the highst number is 24, use 25.
The forward slashes on the windows path is correct. This is java therefore use forward slashes.
Bounce the ALM/AgM service, GC logs should be created.
To read the logs use "GCViewer". See: http://www.tagtraum.com/gcviewer-download.html