---
title: Configuring memory dumps in Java startup
description: You can enable or disable Java Virtual Machine (JVM) memory dump, or change the memory dump's storage location.
component: pingaccess
version: 9.0
page_id: pingaccess:reference_guides:pa_configuring_memory_dumps_in_java_startup
canonical_url: https://docs.pingidentity.com/pingaccess/9.0/reference_guides/pa_configuring_memory_dumps_in_java_startup.html
revdate: January 12, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
---

# 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) *(tooltip: \<div class="paragraph">
\<p>A virtual machine that allows a computer to run Java programs and programs that are compiled to Java bytecode.\</p>
\</div>)* 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"
    ```
