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

that can be processed simultaneously can be controlled by limiting the number of threads the NSJSP
Connector can spawn.
NOTE:
A single connector can service multiple instances of the container. The connector must
be configured such that it can spawn threads sufficient for all the container instances. In terms of
configuration, the Host element in the server.xml configuration file represents a container that
is serviced by the connector.
The NSJSP Connector thread pool can be connected in the following ways:
•
Configuring the Connector Element
•
Configuring the Executor Element
Configuring the Connector Element
Configure the maxThreads attribute of the Connector element in the <NSJSP Deployment
Directory>/conf/server.xml
file on OSS. The Connector element is the child of the
Service
element.
For example: The following snippet shows the configuration in the <NSJSP Deployment
Directory>/conf/server.xml
file on OSS, if you want to configure 75 simultaneous connector
threads.
…
…
<Connector protocol="HTTP/1.1"
connectionTimeout="0"
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 can be configured to use an Executor element.
…
…
<Executor name="MyFacesExec"
className="org.apache.catalina.core.StandardThreadExecutor"
namePrefix="MyFacesAPP" maxThreads="75" minSpareThreads="20"
maxIdleTime="10000"/>
<Connector executor="MyFacesExec"/>
…
…
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.
NonStop Platform Configurations 247