Though, I have tried it, but here is a very good article talks about the same thing.
https://helpx.adobe.com/experience-manager/kb/AnalyzeUnclosedSessions.html
In order to solve this problem permanently, I would suggest reviewing your code wherever session is being used. Ultimately, you got to fix it. Then Why not now?.
Jitendra
chetanvajre2014 wrote...
Our system starts slowing down as days progress possibly because of unclosed sessions. Is there a tool to run against a codebase to find out bad code?