tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul DuBois <p...@snake.net>
Subject <Manager> maxIdleBackup, {min,max}IdleSwap query
Date Wed, 14 Nov 2001 17:54:33 GMT
I've been pondering the Tomcat Manager component documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
with regard to storing sessions in JDBC-based backing store.  I am not
clear on the distinction between backing up a session and swapping it
(the behaviors controlled by the maxIdleBackup attribute and the
minIdleSwap and maxIdleSwap attributes of the <Manager> element), and I
don't find anything in the archives.

The relevant section of the documentation reads as follows:

----------
maxIdleBackup
The time interval (in seconds) since the last access to a session before
it is eligible for being persisted to the session store, or -1 to
disable this feature. By default, this feature is disabled.

maxIdleSwap
The time interval (in seconds) since the last access to a session before
it should be persisted to the session store, and passivated out of the
server's memory, or -1 to disable this feature. If this feature is
enabled, the time interval specified here should be equal to or longer
than the value specified for maxIdleBackup. By default, this feature is
disabled.

minIdleSwap
The time interval (in seconds) since the last access to a session before
it will be eligible to be persisted to the session store, and passivated
out of the server's memory, or -1 for this swapping to be available at
any time. If specified, this value should be less than that specified by
maxIdleSwap. By default, this value is set to -1.
----------

Is the distinction simply that for backing up, Tomcat just writes a
copy of the session information to backing store, whereas for swapping,
Tomcat writes it to backing store and forgets it until a client makes a
request that uses the session again?

Also, is there some required relationship between the values of
maxIdleBackup and minIdleSwap?  The documentation states that
maxIdleBackup <= maxIdleSwap and minIdleSwap < maxIdleSwap, but nothing
explicit about maxIdleBackup and minIdleSwap.

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message