Analyze Open Session
Symptom:
Any writes or update in repository through API is done through JCR session. But some time developers forget to close session causing session to remain open. As number of open session grows it cause performance issue. System eventually come to a point where it does not respond any more.
How to find Open Session:
How to find code not closing session:
Example:
com.day.crx.j2ee.JCRExplorerServlet.login(JCRExplorerServlet.java:521)
ResourceServlet.spoolResource(ResourceServlet.java:148)
java.lang.Thread.run(Thread.java:595): session# 10023
This example means session #10023 was not closed, and the stack trace included the given lines when the session was opened.