uCosminexus Application Server, Web Container Functionality Guide
This subsection explains the settings to control the number of threads in the Web application.
To control the number of threads in the Web application, you must set up the J2EE server and J2EE applications.
Reference the J2EE application settings only when you want to set or change the properties of the J2EE applications that do not contain cosminexus.xml.
Implement the J2EE server settings in the Easy Setup definition file. Specify the definition for controlling the number of threads in the Web applications in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file.
The following table lists the definition in the Easy Setup definition file for controlling the number of threads in the Web applications:
Table 2-54 Definition in the Easy Setup definition file for controlling the number of threads in the Web applications
Items | Parameter to be specified | Setting contents |
---|---|---|
Controlling the number of concurrently executing threat | webserver.container.thread_control.enabled | Specifies whether the number of concurrently executing threads in the Web applications will be controlled. If you specify true, the controlling of the number of concurrently executing threads in the Web applications is enabled. If you specify false, the controlling of the number of concurrently executing threads in the Web applications is disabled and the number of concurrently executing threads in the Web Container is controlled. |
Default size of a pending queue | webserver.container.thread_control.queue_size | When the number of executing threads reaches the maximum number, the request is accumulated in a queue. This parameter specifies the common pending queue size for each Web application at this time (default pending queue size). The set value is applied when the number of concurrent executions in the Web applications is not specified. |
For details on the Easy Setup definition file and the parameters to be specified, see 4.6 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.
Implement the J2EE application settings in the execution environment by using the server management commands and property files. Use the WAR property file to define the controlling of the number of threads in the Web application.
The tags specified in the WAR property file correspond to cosminexus.xml. For details on the definitions in cosminexus.xml, see 2.17.4 Definition in cosminexus.xml.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.