Configuring itp webserver for myfaces applications – HP Integrity NonStop J-Series User Manual

Page 241

Advertising
background image

4.

Set the value of TANDEM_RECEIVE_DEPTH to 250 (because the values of Maxlinks and
TANDEM_RECEIVE_DEPTH

should be equal). A value of 250 means NSJSP process is able

to read a maximum of 250 messages simultaneously from its $RECEIVE file.

5.

Configure the Executor element in the <NSJSP Deployment
Directory
>/conf/server.xml

file on OSS. The Executor element is used by the

Connector as a thread pool. Set maxThreads = 300, minSpareThreads = 10 and
maxIdleTime

= 30000. Using the Executor element helps monitor the number of active

threads at any given time. A value of 300 for maxThreads ensures that you have enough
threads to process all incoming requests (a maximum of 250) simultaneously. A value of
30000 for maxIdleTime ensures that if a thread is idle for more than 30 seconds, that
thread will be stopped.

After configuring the parameters, you can use a tool that can simulate the HTTP clients and can
handle HTTP cookies. The tool reveals the number of HTTP clients that a single instance of NSJSP
can handle and indicates the number of simultaneous HTTP requests that NSJSP is capable of
handling.

NOTE:

There are a number of HTTP client simulators available, for example, Apache JMeter, HP

LoadRunner, and Radview Webload. These tools provide a good interface to monitor the test
results. You can use any of these tools to determine the maximum handling capacity of each NSJSP
instance.

To arrive at the required numbers, complete the following steps:

1.

Run the test tool with a single instance of the HTTP client simulator.

NOTE:

The test tool must be capable of showing the response time of the HTTP requests.

2.

Monitor the response time of the HTTP requests and allow your application to attain a steady
state (in terms of response time per HTTP request).

3.

At steady state, check if the response times are within the Service Level Agreement (SLA).

4.

If the response time is within the SLA, increase the number of HTTP client instances and repeat
step 2 onwards.

5.

If the response time is beyond the acceptable SLA, stop the tests and determine the number
of HTTP clients and the number of HTTP requests that NSJSP instance could process
simultaneously.

While the test tool can indicate the number of HTTP clients that were being processed simultaneously,
the number of simultaneous HTTP requests can be arrived at by different means. Following are
some of the calculation strategies:

The number of HTTP requests recorded by the testing tool and idea of the number of requests,
which required processing by NSJSP, provides the total number of HTTP requests processed
by NSJSP.

The total number of HTTP requests processed by NSJSP together with the test duration indicates
the average number of simultaneous HTTP requests handled by NSJSP.

Configuring iTP WebServer for MyFaces Applications

The httpd process of the iTP WebServer is responsible for managing the load and forwarding
the requests to their corresponding application servers, the context of this section is limited to the
configurations related to httpd processes only.

Configuring the httpd process involves the following tasks:

“Configuring httpd Processes to Handle Maximum Load” (page 242)

“Limiting the Maximum Number of Incoming Requests” (page 244)

NonStop Platform Configurations

241

Advertising
This manual is related to the following products: