nandish kumar
unread,2:09 AM (17 hours ago) 2:09 AMSign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.