Configuring connector threads, Configuring the connector element, Configuring the executor element – HP Integrity NonStop H-Series User Manual

Page 246: Configuring the, Connector, Element, Executor

Advertising
background image

For more information on the

SessionBasedLoadBalancing

and

SessionBasedLoadBalancing

configuration directives, see the NonStop Servlets for

JavaServer Pages (NSJSP) 6.0 System Administrator's Guide.

Configuring Connector Threads

The Connector is responsible for creating and maintaining the threads that are used for message
processing. A thread is allocated for each incoming message; therefore, the number of messages
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.



<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 can be configured to use an

Executor

element.



<Service name=”NSJSP”>
<Executor name=”MyFacesExec”
className=”org.apache.catalina.core.StandardThreadExecutor
namePrefix=”MyFacesAPP” maxThreads=”75” minSpareThreads=”20”
maxIdleTime=”10000”/>
<Connector executor=”MyFacesExec”/>

246

Configuring MyFaces Applications on NonStop Systems

Advertising
This manual is related to the following products: