ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/program/sescfgschedinval.htm

59 lines
2.9 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Configure scheduled invalidation</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h6><A NAME="sescfgschedinval"></A>Configure scheduled invalidation</h6>
<p>Instead of relying on the periodic invalidation timer that runs
on an interval based on the session timeout parameter, you can set specific
times for the session management facility to scan for invalidated sessions
in a distributed environment. When used with distributed sessions, this feature
has the following benefits:</p>
<ul>
<li>You can schedule the scan for invalidated sessions for times of low application
server activity, avoiding contention between invalidation scans of database
or another WebSphere Application Server - Express instance and read and write operations
to service HTTP session requests.</li>
<li>Significantly fewer external write operations can occur when running with
the End of Service Method Write mode because the last access time of the session
does not need to be written out on each HTTP request. (Manual Update options
and Time Based Write options already minimize the writing of the last access
time.)</li>
</ul>
<p><strong>Usage considerations</strong></p>
<ul>
<li>With scheduled invalidation configured, HttpSession timeouts are not strictly
enforced. Instead, all invalidation processing is handled at the configured
invalidation times.</li>
<li>HttpSessionBindingListener processing is handled at the configured invalidation
times unless the HttpSession.invalidate( ) method is explicitly called.</li>
<li>The HttpSession.invalidate() method immediately invalidates the session
from both the session cache and the external store.</li>
<li>The periodic invalidation thread still runs with scheduled invalidation.
If the current hour of the day does not match one of the configured hours,
sessions that have exceeded the invalidation interval are removed from cache,
but not from the external store. Another request for that session results
in returning that session back into the cache.</li>
<li>When the periodic invalidation thread runs during one of the configured
hours, all sessions that have exceeded the invalidation interval are invalidated
by removal from both the cache and the external store.</li>
<li>The periodic invalidation thread can run more than once during an hour
and does not necessarily run exactly at the top of the hour.</li>
<li>If you specify the interval for the periodic invalidation thread using
the HttpSessionReaperPollInterval custom property, do not specify a value
of more than 3600 seconds (1 hour) to ensure that invalidation processing
happens at least once during each hour.</li>
</ul>
</body>
</html>