NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-79
In-Memory Sessions
(SessionBasedLoadBalancing = true)
Considerations for Configuring In-Memory Sessions
maxActiveSessions
An active session is one that is still present in the memory of the
NSJSPStandardManager. When creating new sessions, the
NSJSPPersistentManager looks at the number of sessions in memory. If the
number is equal to the value of maxActiveSessions when
maxActiveSessions is not equal to -1, a new session will not be created and an
exception is thrown. There could be situations where some of the sessions in
memory are eligible to be expired and removed from the memory. The removal of
expired sessions happens only when the backgroundprocess runs. Until such
time, the expired sessions are also counted as active sessions because they are
still in memory.
maxInactiveInterval
maxInactiveInt
erval
The maximum time interval, in seconds, between
client requests before a session is invalidated.
This attribute provides the initial value whenever
a new session is created, but the interval may be
dynamically altered by a servlet via the
setMaxInactiveInterval method of the
HttpSession object.
For more information, see maxInactiveInterval
on
page 3-79.
pathname The value of this attribute is ignored by the
NSJSPStandardManager.
processExpires
Frequency
Frequency of the session expiration, and related
manager operations. Manager operations will be
performed once for the specified amount of
backgroundProcess calls (the lower the
amount, the more often the checks will occur).
The minimum value is 1, and the default value is
6.
randomClass This class is used to generate the session id. It is
the Java class name of the java.util.Random
implementation class to use. If the
randomClass attribute is not specified, the
default value is
java.security.SecureRandom.
sessionIdLengt
h
The length of session IDs created by this
Manager, excluding any JVM route information
used for load balancing.
Table 3-18. Attribute List for the NSJSPStandardManager (page 2 of 2)
Attribute Description Default value