Thanks @monendra_singh , i am doing the same, but wondering if it tells me clearly what specific class created the session for instance.
Is that something that JMX can tell me ? i tried picking the id from the sessionstats repo reader and went to /system/console/status-Threads, is this the way?
Thread #2102/Thread-1827 [priority=1, alive=true, daemon=true, interrupted=false, loader=java.net.URLClassLoader@4130a648]
I tried the packages, couldn't find it autopopulated for resource resolver unclosed sessions debug
Hi @nitrohazedev ,
Since the 'system/console/status-Threads' has snapshot of all the threads so it is helpful in getting the thread info and their status.
Also, JMX can provide information about the sessions that are currently open and the resource resolvers that are currently in use. However, it is not possible in my opinion to determine the specific class that created a session or resource resolver using JMX. Try following these steps:
- Open JConsole and connect to the AEM instance.
- In the MBeans tab, expand the com.day.crx.core node.
- Under the com.day.crx.core node, you will find MBeans for resource resolvers and sessions.
- Select the MBean for resource resolvers or sessions and view the attributes and operations in the Attributes and Operations tabs.
You might need to register the com.day.crx.core MBean to enable the JMX remote connector in the AEM instance. To do this, you will need to add the following configuration to the AEM instance's start script:
-Dcom.sun.management.jmxremote.port=<port> \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false
Note: The above configuration will disable SSL and authentication for the JMX remote connector. This is not recommended for production environments.
Let me know how you go.
Thanks,
Monendra