Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Instance spontaneously turning "Refuse New Sessions" on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instance spontaneously turning "Refuse New Sessions" on



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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Instance spontaneously turning "Refuse New Sessions" on (From: Paul Hoadley <email@hidden>)
 >Re: Instance spontaneously turning "Refuse New Sessions" on (From: Chuck Hill <email@hidden>)
 >Re: Instance spontaneously turning "Refuse New Sessions" on (From: Paul Hoadley <email@hidden>)
 >Re: Instance spontaneously turning "Refuse New Sessions" on (From: Simon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.