Configuring the executor element, Configuring ts/mp specific parameters, Configuring the – HP Integrity NonStop H-Series User Manual
Page 315: Executor, Element, Nsjsp configured with, Sessionbasedloadbalancing, Turned off
acceptCount="25"
maxThreads="75"/>
…
…
Configuring the
Executor
Element
You can configure the
Executor
element as child elements of the
Service
element in the
<NSJSP deployment directory>/conf/server.xml
file on OSS. The following snippet
of the
server.xml
configuration file shows the configuration of the
Executor
element and
how a
Connector
element can be configured to use an
Executor
element:
…
…
<Executor name=”HibernateExec”
className=”org.apache.catalina.core.StandardThreadExecutor”
namePrefix=”HibernateAPP”
maxThreads=”75”
minSpareThreads=”20”
maxIdleTime=”10000”/>
<Connector executor=”HibernateExec”/>
…
…
NOTE:
All
Executor
elements that are configured in NSJSP must implement the Java interface
org.apache.catalina.Executor
. NSJSP provides a standard implementation of this interface
in the class
org.apache.catalina.core.StandardThreadExecutor
.
Configuring TS/MP Specific Parameters
This section describes the following TS/MP specific configuration parameters:
1.
Numstatic
– Determines the number of static NSJSP processes.
2.
Maxservers
- Determines the total number of NSJSP processes.
3.
TANDEM_RECEIVE_DEPTH
– Determines the handling capacity of each instance of NSJSP.
4.
Maxlinks
– Determines the maximum number of TS/MP links. The number of simultaneous
messages that can be delivered to an instance of NSJSP is determined by
Maxlinks
. NSJSP
reads these many number of messages from the
$RECEIVE
file simultaneously.
5.
Number of Connector threads.
The configurations for
Numstatic
,
Maxservers
,
TANDEM_RECEIVE_DEPTH
, and
Maxlinks
can be set in the
Server
directive in the
<iTP WebServer deployment
directory>/conf/servlet.config
file on OSS. Before configuring NSJSP, it is important
that you determine the maximum load that each instance of NSJSP is expected to handle.
The way these configuration directives drive the NSJSP environment depends on whether
the
SessionBasedLoadBalancing
feature is turned
ON
or
OFF
.
•
•
NSJSP Configured with
SessionBasedLoadBalancing
Turned OFF
•
The value of
Numstatic
must be
[(Average Load)/(Max load one instance of
NSJSP can handle)]
.
•
Maxservers
must be
[(Peak Load)/(Max load one instance of NSJSP can
handle)]
.
•
The value of
Maxlinks
must be set to the peak load that one instance of NSJSP is expected
to handle.
NonStop Platform Configurations
315