For Java Experienced Developers - Escco Japan Co., Ltd.
"Concurrent connections" is a term often used in web system development, but it is frequently misused without a clear definition. Here, we will create a strict definition including several related terms.
If Proxy, FireWall, etc. have caching capabilities, connections to static content may not reach the WEB server. And to be more precise, it's not 2 but 1.X.
Configuration Item | Value | Description |
---|---|---|
ListenBacklog | 3000 | Maximum connection wait queue number for queuing requests of established TCP connections |
maxConnections | 1000 | Maximum number of concurrent connections the server accepts and processes |
acceptCount | 100 | Maximum queue length for incoming connection requests when all possible request processing threads are in use |
MaxClients | 100 | Number of concurrent requests that can be responded to |
maxthreads | 200 (default) | Maximum number created for request processing (maximum concurrent executions)极> |
ServerLimit | 1000 | Maximum configurable value for MaxClients (maximum during Apache process execution, limited to 20000 or less) |
When there are many connections from clients:
When processing connection requests in the Connection queue with the EFW framework:
There are two types of errors when the event queue maximum is reached:
When the server connections are full, new operations will display the following error message:
Connection error: The server is busy. Please try again after a while.
When heavy operations are restricted, the following countdown message will be displayed (30-second count). Retry allowed.
The system is busy. Please wait until the operation becomes available.
When operations are restricted, the following busy message will be displayed. No retry.
This function is busy. Please wait for a while.
Various parameters can be adjusted in the following configuration files:
To handle high-load environments, these values need to be appropriately adjusted according to system requirements.