Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

participants session in inTransitMap not release after global log out #198

Open
junxiong opened this issue Oct 14, 2013 · 0 comments
Open

Comments

@junxiong
Copy link

During the global log out process, a set of all the participants will be put into the inTransitMap in the Identity Server, then the set will be cleared after the user successfully log out on each participant. But the entry of the participants set still remains in the inTransitMap, although it is very small, it will slowly consumes all the memory in the long run.
We try to clear the entry if the set is empty, this will fix the memory leak issue, below is the gist for this issue.
https://gist.github.com/junxiong/6971960

Even if we add the code to clear the entry in IdentityServer, it still leaks memory if the user does not choose to logout the system, for example, close the browser or just let the session time out.
So we have to invoke the removeSession method in the IDPHttpSessionListener when session is going to destroyed, below is the gist for this issue
https://gist.github.com/junxiong/6971992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant