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

Page 177

Advertising
background image

that can be processed simultaneously can be controlled by limiting the number of threads that
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 using the following ways:

“Configuring the Connector Element” (page 177)

“Configuring the Executor Element” (page 177)

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 element 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:



<Service name="NSJSP">
<Connector protocol="HTTP/1.1"
connectionTimeout="0"
acceptCount="25"
maxThreads="75"/>


</Service>

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:



<Service name="NSJSP">
<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.

NonStop Platform Configurations 177

Advertising
This manual is related to the following products: