Investigating the cause of open sessions and bad site performance!
Hi everyone,
My AEM Production instance is experiencing very high garbage collection CPU Usage and performance issues. I think it might be because of sessions being left open.
I am checking /system/console/jmx on one of the publishers experiencing high garbage collection (over 60% cpu usage over 10+ hours)
I know that by default, there is ~85 SessionStatistics mbeans, and right now there is ~119 SessionStatistics mbeans. I think that very large objects on the heap are being retained due to these sessions staying open. These large objects are related to Search or QueryBuilder (based on a heap dump I checked)
The sessions that are staying open and their start times are directly related to the spikes in garbage collection.
These are the sessions being started that seem to spike my GC CPU usage.

There is about 3 other sessions that are associated with each of these repository-reader-services that are staying open, Two from admin@session, and one from anonymous@session.
Is there anywhere i can find out more information about repository-reader-services sessions being started? What should my next steps be in solving this problem?
Any advice is GREATLY appreciated!
Thank you!
Ian