Keycloak 22v Cache Configuration Changes to Address Heap Growth.

10 views
Skip to first unread message

nandish kumar

unread,
2:09 AM (17 hours ago) 2:09 AM
to Keycloak User
Hi Team,
I would like to share some inputs regarding the memory utilization issue. Previously, both Realm A and Realm B had session timeouts set to 7 days. With this configuration, memory usage was reaching around 90–95% once a week. Since Realm A has a higher number of active sessions, we discussed with the application owners and reduced the session timeout from 7 days to 3 days. However, even after this change, we are still observing the same behavior — memory usage continues to reach around 90% on a weekly basis. There has been no significant improvement compared to the previous configuration.
As per of co-pilot suggested below configuration. configure cache eviction in cache-ispn.xml using This help us? <distributed-cache name="sessions" owners="2"> <expiration lifespan="-1"/> <memory max-count="10000" when-full="REMOVE"/> </distributed-cache> <distributed-cache name="clientSessions" owners="2"> <expiration lifespan="-1"/> <memory max-count="20000" when-full="REMOVE"/> </distributed-cache>
Regards Nandish.

Reply all
Reply to author
Forward
0 new messages