How to generate a JAVA HEAP DUMP?

Document ID : KB000020405
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

You can enable JAVA HEAP DUMPS to troubleshoot performance issues in CA Clarity.

Solution:

See step to generate a dump file:

  1. Add the following argument string in the APP JVM (Application Java VM Parameters) and/or BG JVM (Background Java VM Parameters)

    -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<PATH_FOLDER>\<file_name>.hprof

  2. Restart APP and/or BG service, depending on which one you have edited.

Next time there is an Out of Memory error (java.lang.OutOfMemoryError: Java heap space), a dump will be generated under the path folder location indicated. You can use a 3rd party tool to analyse it or contact CA Support for further assistance.

Note: This is valid when Clarity is running on Tomcat or Weblogic as a Web Server.