HTTP session debugging
For HTTP session related issues, check:
- The contents of the sessions
- When the sessions are created
- What attributes are added/removed
SessionDebuggerclass to assist with this process. The
SessionDebuggerclass is both a
HttpSessionListener. To enable the filter, register it in Magnolia's filter chain. To enable the session event listener, add the following to your web.xml:
<listener> <listener-class>info.magnolia.debug.SessionDebugger</listener-class> </listener>
This listener logs a large quantity of data in WARN mode. Be sure to disable this process when the debugging session is over.
JCR session monitoringMagnolia CMS includes a simple JMX Mbean which allows you monitor currently opened JCR sessions. Connect to your container (for instance using JConsole) and locate the
Magnolia JCRStatsMBean. It will show you how many JCR sessions are currently open. See Monitoring for more.