]
Jimmy Wilson commented on JBAS-6342:
------------------------------------
This issue is the fix for this problem in 4.2.x. JBoss 5+ is fixed by JBAS-5404.
Setting MaxInactiveInterval For Sessions Can Cause Them To Evicted
Early On Failover Nodes
-------------------------------------------------------------------------------------------
Key: JBAS-6342
URL:
https://jira.jboss.org/jira/browse/JBAS-6342
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.2.3.GA
Reporter: Jimmy Wilson
Assignee: Jimmy Wilson
Fix For: JBossAS-4.2.4.GA
Setting the MaxInactiveInterval for a web session can cause sessions to be evicted early
on failover nodes as the MaxInactiveInterval is a part of the marshalled session which is
only unmarshalled on failover. The web.xml session timeout is used for eviction of
marshalled sessions.
If the MaxInactiveInterval is set to 90 minutes, but the web.xml session timeout is set
to 30 minutes, the session can be evicted early preventing failover for a given session.
If the opposite occurs and the MaxInactiveInterval is set to 30 minutes and the web.xml
session timeout is set to 90 minutes, the session will not be used during failover if the
MaxInactiveInterval has already elapsed. If failover doesn't occur (and in most cases
it will not), the marshalled session will remain in memory until the web.xml session
timeout has elapsed.
This JIRA is meant to track the early expiration problem. Setting the web.xml session
timeout to the largest value that will ever be used for the MaxInactiveInterval will
prevent early eviction, but it can cause sessions to accumulate in memory. By using a
sensibly small web.xml session timeout coupled with the fix detailed in this JIRA, early
eviction will be avoided completely and large amounts of unnecessary accumulation can be
avoided (but it won't be avoided completely).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: