---
title: Max Entries in POST Data Preservation Storage
description: When POST Data Preservation in Files or Cache is false, the maximum number of entries in the POST data preservation storage cache.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.pdp.cache.size
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.pdp.cache.size.html
---

# Max Entries in POST Data Preservation Storage

When [POST Data Preservation in Files or Cache](org.forgerock.agents.pdp.use.filesystem.enabled.html) is `false`, the maximum number of entries in the POST data preservation storage cache.

When [POST Data Preservation in Files or Cache](org.forgerock.agents.pdp.use.filesystem.enabled.html) is `true`, the maximum number of files in the [POST Data Preservation File Directory](org.forgerock.agents.pdp.directory.html).

When the maximum is reached, old entries are discarded.

Use this property to mitigate the risk of DoS attacks.

[POST Data Preservation Storage Size](org.forgerock.agents.pdp.cache.total.size.mb.html) takes precedence over this property.

|                          |                                                                                                                                                                                                                                                          |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.pdp.cache.size`                                                                                                                                                                                                                    |
| Aliases                  | `org.forgerock.agents.pdp.cache.size`   Introduced in Java Agent 5.6`org.forgerock.openam.agents.config.postdata.preserve.cache.entry.max.entries`   Introduced in Java Agent 5.6   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 6 |
| Function                 | POST data preservation                                                                                                                                                                                                                                   |
| Type                     | Integer                                                                                                                                                                                                                                                  |
| Default                  | `1000`                                                                                                                                                                                                                                                   |
| Bootstrap property       | Yes                                                                                                                                                                                                                                                      |
| Required property        | No                                                                                                                                                                                                                                                       |
| Restart required         | Yes - Restart the container after changing the property                                                                                                                                                                                                  |
| Local configuration file | `AgentBootstrap.properties`                                                                                                                                                                                                                              |
| AM console               | Tab: `Advanced`Title: `Max Entries in POST Data Preservation Storage`Legacy title: `PDP Maximum Number of Cache Entries`                                                                                                                                 |
