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-76
In-Memory Sessions
(SessionBasedLoadBalancing = true)
In Figure 3-5, each user has their own current session, within which more than one
request has been made. Note that all the requests from user 1 are routed to the
NSJSP process in CPU 0, which has the session object for user 1. All requests from
user 2 are routed to the NSJSP process in CPU 2, which has the session object for
user 2.
Configuring In-Memory Sessions
In the installation-specific servlet.config file located in <NSJSP_HOME>/conf,
set the value of the attribute SessionBasedLoadBalancing to true. Example 3-61
shows the Arglist from an installation-specific servlet.config file with
SessionBasedLoadBalancing enabled.
Figure 3-5. Request Routing within NSJSP Sessions when
SessionBasedLoadBalancing is true
CPU 0 CPU 1 CPU 2 CPU 3
TS/MP Environment
NSJSP
iTP Webserver
HTTPD
NETWORK
HTTPD HTTPD HTTPD
NSJSP NSJSP NSJSP
Request 1
Request 1Request 1
Request 2
R
e
q
u
e
s
t
2
R
e
q
u
e
s
t
2
Request 3
R
e
q
u
e
s
t
3
R
e
q
u
e
st
3
Request 1Request 1
R
eq
u
est
1
Request 2
R
e
q
u
e
s
t
2
R
e
q
u
e
s
t
2
User 1 User 2










