Skip to content

InMemoryWebSessionStore could leak memory if sessions created but never used [SPR-17020] #21558

@spring-projects-issues

Description

@spring-projects-issues

adrienleroy opened SPR-17020 and commented

In InMemoryWebSessionStore, expired sessions are checked and deleted when retrieveSession is called. In our case sessions are created but users never reuse the session id. So we never retrieve sessions and never clean them. We then have a memory leak.

I think that InMemoryWebSessionStore should not rely on session's creation/retrieval etc... to clean up its own sessions.


Affects: 5.0.6

Reference URL: https://jira.spring.io/browse/SPR-15963?jql=text%20~%20%22InMemoryWebSessionStore%22

Issue Links:

Referenced from: commits 43fbd63, 6218db9, 32b7522

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions