39 lines
2.3 KiB
HTML
39 lines
2.3 KiB
HTML
|
<!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>Maximum in-memory session count</title>
|
||
|
</head>
|
||
|
|
||
|
<BODY>
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
<h5><a name="sesmaxim"></a>Maximum in-memory session count</h5>
|
||
|
|
||
|
<p>The maximum in-memory session count number has different meanings, depending on session support configuration:</p>
|
||
|
|
||
|
<ul>
|
||
|
<li>When sessions are being stored in memory, session access is optimized for up to this number of sessions. This value also specifies the number of sessions in the base session table.</li>
|
||
|
<li>When sessions are being stored in another instance, it also specifies the cache size and the number of last access time updates that are saved in manual update mode.</li>
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
<p>General memory requirements for the hardware system, and the usage characteristics of the e-business site, determines the optimum value.</p>
|
||
|
|
||
|
<p><strong>Overflow in non-persistent sessions</strong></p>
|
||
|
|
||
|
<p>By default, the number of sessions maintained in memory is specified by the maximum in-memory session count. If you do not wish to place a limit on the number of sessions maintained in memory and allow overflow, select <strong>Allow overflow</strong>.</p>
|
||
|
|
||
|
<p>Allowing an unlimited amount of sessions can potentially exhaust system memory and even allow for system sabotage. Someone could write a malicious program that continually hits your site and creates sessions, but ignores any cookies or encoded URLs and never utilizes the same session from one HTTP request to the next.</p>
|
||
|
|
||
|
<p>When overflow is disallowed, the Session Manager still returns a session with the HttpServletRequest's getSession(true) method if the memory limit has currently been reached, but it would be an invalid session that is not saved.</p>
|
||
|
|
||
|
<p>With the WebSphere Application Server - Express extension to HttpSession, com.ibm.websphere.servlet.session.IBMSession, an isOverflow() method returns true if the session is an invalid session. An application could check this and react accordingly.</p>
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|