beautypg.com

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

Page 196: Configuring the, Connector, Element, Executor

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 using 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.




<Executor name=”Axis2/JavaExec”
className=”org.apache.catalina.core.StandardThreadExecutor” namePrefix=”Axis2/JavaAPP” maxThreads=”75”
minSpareThreads=”20” maxIdleTime=”10000”/>
<Connector executor=”Axis2/JavaExec”/>

196

Configuring Axis2/Java Applications on NonStop Systems

This manual is related to the following products: