beautypg.com

Configuring the executor element, Configuring ts/mp specific parameters – HP Integrity NonStop J-Series User Manual

Page 327

background image


Configuring the Executor Element

You can configure the Executor element as a child element 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="SpringExec"
className="org.apache.catalina.core.StandardThreadExecutor"
namePrefix="SpringAPP"
maxThreads="75"
minSpareThreads="20"
maxIdleTime="10000"/>
<Connector executor="SpringExec"/>

NOTE:

All executors 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 under 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
manner in which these configuration directives drive the NSJSP environment depends on
whether the SessionBasedLoadBalancing feature is turned ON or OFF.

“NSJSP Configured with SessionBasedLoadBalancing Turned OFF” (page 327)

“NSJSP Configured with SessionBasedLoadBalancing Turned ON” (page 328)

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.

TANDEM_RECEIVE_DEPTH

must be twice the value of Maxlinks. Normally, to handle n

number of messages, you need n number of threads. In extreme cases, all the n requests may
timeout. While the same number of threads processing the timeout requests could still be busy,

NonStop Platform Configurations 327

This manual is related to the following products: