This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleUsers prematurely logged out at random
Date29-Mar-2007 18:51:46 EEST
Version2.4.100
Submitter71.182.134.10
Bug criticalityBadBug
Browser versionSafari 2.0.4
Bug statusNewBug
PageProvider usedcom.ecyrd.jspwiki.providers.CachingProvider
Servlet ContainerTomcat 5.5.20
Operating SystemDebian GNU/Linux 3.1
URL
Java versionJDK 1.5.0_09

We have a wiki where all users are required to be authenticated. The session timeout is 3 hours, so that users don't need to reathenticate frequently.

When we upgraded from 2.4.82 to 2.4.100, the wiki started asking users to re-login very quickly, sometimes after only a few minutes, sometimes after an hour.

The problem seems to be random--sometimes many users will lose their login at the same moment, sometimes only a few. When multiple logouts happen, they seem to happen at the same time.

The problem seems to happen more frequently when the wiki is doing more work--lots of folks editing pages at the same time.

When we rolled back to the intermediate version 2.4.91, the problem *seemed* to disappear.

I saw that in version 2.4.97, this was added: "WikiEventDelegate now stores all listeners as WeakReferences". Speaking out of my own ignorance, the bug we're seeing looks like a weak reference being reclaimed too soon. Is there any way to log when these weak references are reclaimed, so that we could corelate that with the time that a user reports being logged out? Or can we get the wiki to log when (and why) sessions are discarded, so that we can pin down what's going on?


The thing is that the EventManager does not manage sessions. The switch to WeakReferences was mandatory because the sessions were not being released at all, which results in a pretty bad memory leak.

My guess is that SessionMonitor is at fault here, but it'll take a bit of thinking.

--JanneJalkanen, 29-Mar-2007

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 29-Mar-2007 21:35 by JanneJalkanen.