---
title: Max Entries in Policy Cache per Session
description: The maximum number of policy evaluation entries allowed in the policy evaluation cache for each session.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.policy.cache.per.session.size
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.policy.cache.per.session.size.html
---

# Max Entries in Policy Cache per Session

The maximum number of policy evaluation entries allowed in the policy evaluation cache for each session.

The number of policy evaluation results that can be stored is this property multiplied by the value of [Max Sessions in Policy Cache](org.forgerock.agents.policy.cache.session.size.html).

|                          |                                                                                                                                                                                                                                                  |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Property name            | `org.forgerock.agents.policy.cache.per.session.size`                                                                                                                                                                                             |
| Aliases                  | `com.sun.identity.policy.client.cacheResultsPerUserCap`   Introduced in Java Agent 5.0`org.forgerock.agents.policy.cache.per.session.size`   Introduced in Java Agent 5.6   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7 |
| Function                 | Policy enforcement                                                                                                                                                                                                                               |
| Type                     | Integer                                                                                                                                                                                                                                          |
| Default                  | `50`                                                                                                                                                                                                                                             |
| 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 (from AM 7)`Title: `Max Entries in Policy Cache per Session`Legacy title: `Policy Cache Per User`                                                                                                                                 |
