Undefinitly growing number of cached clientSessions


While monitoring infinispan metrics we noticed that the number of clientSession items grows constantly and the number of clientSession doesn’t seem to be correlated with the number of active user sessions as displayed in Keycloak admin console.

Any clue about what can cause this will be appreciated.

We’re using Keycloak 14.0.0


May be a more specific question will help getting answers:

the client session lifespan settings are kept to the default zero values, meaning that the actual lifespan should be the same as the “standard” SSO session according to the documentation. But can it be that the “Remeber Me” settings is taken into account ? That could explain why a large amount of client sessions are not expiring according to the SSO session lifespan.