Bug 42691 - sessions increase timeout as cluster members join
Summary: sessions increase timeout as cluster members join
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina:Cluster (show other bugs)
Version: 5.5.23
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-18 07:34 UTC by Casey Lucas
Modified: 2007-08-14 01:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casey Lucas 2007-06-18 07:34:26 UTC
This is probably not a big problem for most users of session replication. 
However for us it was worth fixing.

In our environment we commonly perform rolling software upgrades across our web
site.  While testing replication, we noticed that as we shutdown and restarted
nodes, the session counts would continually grow.  Basically, we found that as
sessions are transfered at startup time, the local access time is set to the
transfer time.  Code comments imply that this is done to prevent incorrect node
time synchronization problems.  However, it also simulates activity for old
sessions that are about to expire.  Under load, if you restart nodes enough,
your session count will keep growing and growing.

We changed the current behavior to keep existing session access times by
commenting out the call to session.access() in DeltaManager.deserializeSessions
(line 782 in svn revision 548361)
Comment 1 Peter Rossbach 2007-08-14 01:06:03 UTC
Thanks to find this ugly behaviour :-)
Peter