Hi Team, I am running a lod test using an Async HTTPClient. Even within 1 minutes of load test randomly getting below exception causing transaction to fail. Using most of the defaults for HTTPClient with below configuration. I am unable to find the reason why this error is being thrown and Is there any setting which is missing?
*Socket Timeout : 180000 ms* *Connect Timeout : 180000 ms* *evictIdleConnections Time: 60000 ms* *Max per Route : 20* *Pool Size : 420* Below is the stats of pool during execution of requests and before the exception occurred *[20/Jun/2023:16:08:03-118] [INFO] - [leased: 2; pending: 0; available: 5; max: 420]* *[20/Jun/2023:16:08:03-133] [INFO] - DefaultMaxPerRoute -> 20* *Note*: Seeing lots of TIME_WAIT connections roughly about 2000+ around 2 minutes into run might be due to throughput of around 150 requests / sec. *Below is stack trace i am seeing* [20/Jun/2023:16:08:03-133] [ERROR] - Deadline: +292278994-08-17T07:12:55.807+0000, 9223370349577492674 MILLISECONDS overdue org.apache.hc.core5.util.DeadlineTimeoutException: Deadline: +292278994-08-17T07:12:55.807+0000, 9223370349577492674 MILLISECONDS overdue at org.apache.hc.core5.util.DeadlineTimeoutException.from(DeadlineTimeoutException.java:49) ~[httpcore5-5.2.2.jar:5.2.2] at org.apache.hc.core5.pool.StrictConnPool.lease(StrictConnPool.java:217) ~[httpcore5-5.2.2.jar:5.2.2] at org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager$3.<init>(PoolingAsyncClientConnectionManager.java:271) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager.lease(PoolingAsyncClientConnectionManager.java:266) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.InternalHttpAsyncExecRuntime.acquireEndpoint(InternalHttpAsyncExecRuntime.java:105) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncConnectExec.execute(AsyncConnectExec.java:141) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncExecChainElement.execute(AsyncExecChainElement.java:54) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncProtocolExec.internalExecute(AsyncProtocolExec.java:207) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncProtocolExec.execute(AsyncProtocolExec.java:172) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncExecChainElement.execute(AsyncExecChainElement.java:54) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncHttpRequestRetryExec.internalExecute(AsyncHttpRequestRetryExec.java:97) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncHttpRequestRetryExec.execute(AsyncHttpRequestRetryExec.java:184) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.AsyncExecChainElement.execute(AsyncExecChainElement.java:54) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.executeImmediate(InternalAbstractHttpAsyncClient.java:347) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.lambda$doExecute$0(InternalAbstractHttpAsyncClient.java:205) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.core5.http.nio.support.BasicRequestProducer.sendRequest(BasicRequestProducer.java:93) ~[httpcore5-5.2.2.jar:5.2.2] at org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.doExecute(InternalAbstractHttpAsyncClient.java:178) ~[httpclient5-5.2.1.jar:5.2.1] at org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:97) ~[httpclient5-5.2.1.jar:5.2.1] -- Cheers, S. Sreenivas