HTTP Connection Pool Configuration
Configuring an HTTP connection pool is essential for optimizing the performance of applications that make frequent HTTP requests. You can configure the following key parameters:
Parameter | Description |
---|---|
http.client.cpool.maxTotal | Maximum number of open connections. |
http.client.cpool.defaultMaxPerRoute | Maximum number of concurrent connections per route. |
http.client.cpool.connectionRequestTimeout | Maximum time, in milliseconds, to wait to get a connection from the connection manager or pool. Zero is interpreted as an infinite timeout. |
http.client.cpool.connectTimeout | Timeout, in milliseconds, to establish a connection with a remote host or server. Zero is interpreted as an infinite timeout. |
http.client.cpool.socketTimeout | Maximum time gap, in milliseconds, between two consecutive data packets when transferring data from the server to the client. |