On 10/03/2010, at 10:00 PM, Simon wrote:

> whenever we have had issues with zombie sessions they are usually the
> result of instantiating a session outside the RR loop. my first port
> of call is to use the following code to see where sessions are being
> created. it results in a ton of logs, but you can at least then trawl
> through and see exactly where and when they are being created:
> 
> public Session() {
>               super();
>               setStoresIDsInCookies(false);
>               setStoresIDsInURLs(true);
> 
>               // Debug - uncomment this if we have zombie sessions.
>               StringWriter stringWriter = new StringWriter();
>               PrintWriter printWriter = new PrintWriter(stringWriter);
>               (new Throwable()).printStackTrace(printWriter);
>               String trace = stringWriter.toString();
>               log.debug("Session count = " + 
> application().activeSessionsCount());
>               log.fatal("Session Created:\n\n" + trace);
>       }

Thanks Simon.


-- 
Paul.

http://logicsquad.net/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to