PingAccess

Configuring memory dumps in Java startup

You can enable or disable Java Virtual Machine (JVM) memory dump, or change the memory dump’s storage location.

About this task

The Java Virtual Machine (JVM) memory dump is disabled by default. On Windows, the run.bat file specifies the memory dump location, and on Linux, the run.sh file specifies the memory dump location.

Steps

  • Edit PA_HOME/bin/run.bat on Windows, or PA_HOME/bin/run.sh on Linux.

    Choose from:

    • To enable JVM memory dump, remove the comment tag on the line that specifies the JVM memory dump location. For example:

      HEAP_DUMP="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$PA_HOME/log"
    • To disable JVM memory dump, comment out the line. For example:

      #HEAP_DUMP="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$PA_HOME/log"