9.11.3 Defining the control of the number of threads executed concurrently for each URL group
You specify the definition in order to control the number of threads executed concurrently for each URL group.
To enable the control of number of threads executed concurrently for each URL group, specify the definition for controlling the number of threads executed concurrently for each Web application. For more details on controlling of the number of threads executed concurrently for each Web application, see 9.11.2 Defining the control of the number of threads executed concurrently for each Web application.
- Organization of this subsection
(1) Attribute file to be edited
WAR attribute file
(2) Acquiring the attribute file to be edited and setting the attributes
-
Acquiring the attribute file
Execute the following command to acquire a WAR attribute file:
- Execution format
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file
- Example of execution
cjgetappprop MyServer -name adder -type war -resname adder_war -c C:\home\adder_war.xml
-
Setting the attributes
Execute the following command to apply the values of the WAR attribute file:
- Execution format
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file
- Example of execution
cjsetappprop MyServer -name adder -type war -resname adder_war -c C:\home\adder_war.xml
(3) Attribute settings to be edited
The following table describes the property settings for controlling the number of threads executed concurrently for each URL group (<urlgroup-thread-control>):
Items |
Mandatory |
Corresponding tags |
---|---|---|
Definition name |
Y |
<urlgroup-thread-control-name> |
Maximum number of threads executed concurrently |
Y |
<urlgroup-thread-control-max-threads> |
Number of exclusive threads |
Y |
<urlgroup-thread-control-exclusive-threads> |
Size of the pending queue of each URL group |
Y |
<urlgroup-thread-control-queue-size> |
URL pattern |
Y |
<urlgroup-thread-control-mapping> - <url-pattern> |
For details on the property settings, see 3.7.1 Specifications of the HITACHI WAR Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
(4) Notes
-
The number of threads executed by controlling the number of threads executed concurrently for each URL group, is included in the number of threads executed for each Web application. As a result, when one thread is executed for each URL group, one thread is also executed for each Web application in this Web application.
-
Set the number of threads executed concurrently for each URL group in the following range:
-
Maximum number of threads executed concurrently
The range for specifying the maximum number of threads executed concurrently is as follows:
1 ≤ Sum total of the maximum number of threads executed concurrently for each URL group ≤ Maximum number of threads executed concurrently for each Web application
-
Number of exclusive threads
The range for specifying the number of exclusive threads is described below.
Both condition 1 and condition 2 need to be fulfilled.
Condition 1: When the maximum number of threads executed concurrently for each Web application = Number of exclusive threads for each Web application 0 ≤ Number of exclusive threads for each URL group ≤ Maximum number of threads executed concurrently for each URL group When maximum number of threads executed concurrently for each Web application ≠ Number of exclusive threads for each Web application 0 ≤ Number of exclusive threads for each URL group < Maximum number of threads executed concurrently for each URL group Condition 2: Sum total of the number of exclusive threads for each URL group ≤ Number of exclusive threads for each Web application
-