---
title: Max Sessions in Policy Cache
description: The maximum number of sessions (distinct users) that can be stored in the policy evaluation cache at any time.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.policy.cache.session.size
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.policy.cache.session.size.html
---

# Max Sessions in Policy Cache

The maximum number of sessions (distinct users) that can be stored in the policy evaluation cache at any time.

|                          |                                                                                                                                                                                                                                        |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.policy.cache.session.size`                                                                                                                                                                                       |
| Aliases                  | `org.forgerock.agents.policy.cache.session.size`   Introduced in Java Agent 5.6   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7`com.sun.identity.policy.client.cachedSessionCap`   Introduced in Java Agent 5.0 |
| Function                 | Policy enforcement                                                                                                                                                                                                                     |
| Type                     | Integer                                                                                                                                                                                                                                |
| Default                  | `5000`                                                                                                                                                                                                                                 |
| 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 Sessions in Policy Cache`Legacy title: `Policy Cache Size`                                                                                                                                      |
