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);
}
HTH
Simon
On 10 March 2010 02:40, Paul Hoadley <[email protected]> wrote:
> On 10/03/2010, at 1:04 PM, Chuck Hill wrote:
>
>> Did the app actually stop and restart the previous night? If you have a
>> stuck session, it will start refusing sessions, but it can't actually stop
>> and restart. That sounds like what you are seeing.
>
> Ah, bingo. It didn't stop and restart.
>
> JavaMonitor is telling me there are 13 active sessions, and I can guarantee
> that there are not 13 users currently logged in. Where do I start looking to
> debug these stuck sessions?
>
>
> --
> 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/simon%40potwells.co.uk
>
> This email sent to [email protected]
>
_______________________________________________
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]