6.12.2 Execution environment settings (J2EE server settings)
To specify the settings for limiting the request data size, you must set up a J2EE server.
This section describes the settings and examples for limiting the request data size:
- Organization of this subsection
(1) How to set
Implement the J2EE server settings in the Easy Setup definition file. Specify the definition for limiting the request data size in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file.
The following table lists the definitions in the Easy Setup definition file for limiting the request data size:
Parameter to be specified |
Setting contents |
---|---|
webserver.connector.inprocess_http.limit.max_request_line |
Specifies the upper limit of the request line. |
webserver.connector.inprocess_http.limit.max_headers |
Specifies the upper limit for the number of HTTP headers included in the HTTP request. |
webserver.connector.inprocess_http.limit.max_request_header |
Specifies the upper limit for the request header size of the HTTP request. |
webserver.connector.inprocess_http.limit.max_request_body |
Specifies the upper limit for the body size of the HTTP request. |
For details on the Easy Setup definition file and the parameters to be specified, see 4.3 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.
- Tip
-
If the gateway device such as SSL accelerator and load balancer exist or if the proxy server is deployed and the gateway device and proxy server have the functionality for controlling the request data size, you must set a value less than the value set in the control functionality.
(2) Example settings
An example of settings for limiting the request data size is as follows:
... <param> <param-name>webserver.connector.inprocess_http.limit.max_request_line</param-name> <param-value>1024</param-value> </param> <param> <param-name>webserver.connector.inprocess_http.limit.max_headers</param-name> <param-value>100</param-value> </param> <param> <param-name>webserver.connector.inprocess_http.limit.max_request_header</param-name> <param-value>8192</param-value> </param> <param> <param-name>webserver.connector.inprocess_http.limit.max_request_body</param-name> <param-value>16384</param-value> </param> ...