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

HazelcastSessionManager.findSessions can lead to OOME #83

Closed
sertugkaya opened this issue Apr 17, 2020 · 0 comments · Fixed by #86
Closed

HazelcastSessionManager.findSessions can lead to OOME #83

sertugkaya opened this issue Apr 17, 2020 · 0 comments · Fixed by #86
Milestone

Comments

@sertugkaya
Copy link

sertugkaya commented Apr 17, 2020

HazelcastSessionManager.findSessions is used by Tomcat's session expiration task, and it is calling IMap.getAll().values() under the hood.
This can cause an OOME on caller side if the sessionMap is large enough. If our investigation of this method's usage does not indicate any reason to keep this implementation, we can improve this behavior.

at com.hazelcast.client.proxy.ClientMapProxy.getAll(ClientMapProxy.java:1196) [hazelcast-client-3.12.6.jar!/:3.12.6]
at com.hazelcast.session.HazelcastSessionManager.findSessions(HazelcastSessionManager.java:223) [hazelcast-tomcat9-sessionmanager-1.1.5.jar!/:?]
at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:567) [tomcat-embed-core-9.0.27.jar!/:9.0.27]
at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:558) [tomcat-embed-core-9.0.27.jar!/:9.0.27]
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5539) [tomcat-embed-core-9.0.27.jar!/:9.0.27]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353) [tomcat-embed-core-9.0.27.jar!/:9.0.27]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357) [tomcat-embed-core-9.0.27.jar!/:9.0.27]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357) [tomcat-embed-core-9.0.27.jar!/:9.0.27]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335) [tomcat-embed-core-9.0.27.jar!/:9.0.27]

image001
ZD 6145

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