uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.15.2 Parameters for controlling the number of concurrently executing threads

Control the number of concurrently executing threads by parameters, such as the maximum number of concurrently executing threads, the number of dedicated threads, and the size of a pending queue.

This subsection explains the main parameters for controlling the number of threads.

Organization of this subsection
(1) Maximum number of concurrently executing threads
(2) Number of dedicated threads
(3) Size of a pending queue
(4) Number of shared threads
(5) Method to calculate the number of shared threads

(1) Maximum number of concurrently executing threads

From among the total number of available threads, the maximum number of concurrently executing threads refers to the number of threads that can concurrently execute the maximum number of requests in which the number of concurrently executing threads is to be controlled.

Set the maximum number of concurrently executing threads in a Web container, Web application, and URL group.

(2) Number of dedicated threads

From among the total number of available threads, the number of dedicated threads refers to the number of threads that can definitely execute the requests in which the number of concurrently executing threads is to be controlled. By specifying the control in the Web application and URL group, you can secure the minimum number of threads in each Web application or each URL group.

(3) Size of a pending queue

When the requests in which the number of concurrently executing threads is to be controlled, reach the upper limit of the number of concurrently executing threads, you can specify the size of the request queue. Specify the number of requests to be stored in the queue as the queue size.

The conditions for saving requests in a pending queue are as follows:

Note that if space is not available in a pending queue, the requests are not processed and an error is returned to the client.

You can set the size of a pending queue in the Web application and the URL group.

(4) Number of shared threads

The number of shared threads refers to the number of non-dedicated threads, from among the available threads. The number of shared threads includes the number of shared threads of the Web container, and the number of shared threads of the Web application.

The number of shared threads is calculated from the maximum number of concurrently executing threads and the number of dedicated threads.

For details on how to calculate the number of shared threads, see (5) Method to calculate the number of shared threads.

(5) Method to calculate the number of shared threads

This point describes how to calculate the number of shared threads in a Web container and the number of shared threads in a Web application. When you specify the settings to control the number of concurrently executing threads in the Web application, the number of shared threads in the Web application depends upon whether you specify the settings to control the number of concurrently executing threads in the URL group.

Note that the URL group does not have any shared threads. When you specify the method for controlling the number of concurrently executing threads in URL group of a Web application, the number of shared threads of the Web application is used.

The following figure shows an example for calculating the number of shared threads in a Web container and Web application when the number of concurrently executing threads is specified:

Figure 2-17 Example for calculating the number of shared threads

[Figure]