4
Through a monitoring tool, I am noting that my application has a considerable user session Leak. Every day, about a thousand user sessions are created, without any being destroyed. To take sessions out of memory, you need to restart the application server.
Besides the timeout of the Session may not be set, what else could cause a Session Leak?
Are you saving an instance of Session in a static attribute? This would cause the Session object of each session to not be collected.
– DiogoSantana
Have you ever tried to put one
HttpSessionListener
with logs to see if the methodsessionDestroyed
is called?– utluiz
I will check these possibilities and return. However, the ideal answer would be to have the main causes of a Session Leak. This is because, being a very old application, the possibility of being more of a problem is very large.
– Vinícius
Do you know what kind of application is published in your jboss? JSF 1.2, JSP, JSF 2.0? Sometimes EJB’s with poorly defined life cycle can cause this kind of problem.
– Edgar Muniz Berlinck
@Edgarmunizberlinck, this application in specific is published with JSF 2.0.
– Vinícius