---
title: Garbage collection logging
description: By default, PingAccess logs Java garbage collection data.
component: pingaccess
version: 9.0
page_id: pingaccess:configuring_and_customizing_pingaccess:pa_garbage_collection_logging
canonical_url: https://docs.pingidentity.com/pingaccess/9.0/configuring_and_customizing_pingaccess/pa_garbage_collection_logging.html
revdate: June 27, 2023
---

# Garbage collection logging

By default, PingAccess logs Java garbage collection data.

The garbage collection log includes details related to each occurrence of garbage collection. For example, the log might record a timestamp and the change in heap memory.

Edit the following properties in the `<PA_HOME>/bin/run.sh` file on Linux systems or the `<PA_HOME>\bin\run.bat` file on Windows systems to configure garbage collection properties.

| Property                     | Description                                                                                                        |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `GC_FILE=`*"\<filename>"*    | Specifies the location of the garbage collection log. Comment out this line to disable garbage collection logging. |
| `GC_FILE_COUNT=`*"\<count>"* | Specifies the number of garbage collection files to retain before rotating.                                        |
| `GC_FILE_SIZE=`*"\<size>"*   | Specifies the maximum size for garbage collection files.                                                           |
