Hi Oleg, PFA httpclient logs attached. I have provided 4 instances of errors along with a time stamp (due to file sizes attached to respective log files in zip file) which are below during our load test. Please let me know if any other logging is required.
My environment consists of (All Windows 2019 and plain HTTP transactions for testing purpose) - Jemeter (Which generates load) - Apache HTTPD (Received the requests and forwards it to Tomcat via mod_jk) - Apache Tomcat (Process the request received and generates a request using Apache HTTPClient to get resources required from IIS server) - IIS (Receives request from Apache HTTPClient. Process the requests and generates response) My logging configuration is as below which uses log4j2 as logger implementation *logger.httpClient.name <http://logger.httpclient.name/> = org.apache.hc.client5.http* *logger.httpClient.level = DEBUG* *logger.httpClient.additivity = false* *logger.httpClient.appenderRef.rolling.ref = httpclientRolling* [22/Jun/2023:16:06:06-844] [ERROR] - Deadline: +292278994-08-17T07:12:55.807+0000, 9223370349404808963 MILLISECONDS overdue [22/Jun/2023:16:06:08-260] [ERROR] - Deadline: +292278994-08-17T07:12:55.807+0000, 9223370349404807547 MILLISECONDS overdue [22/Jun/2023:16:11:02-934] [ERROR] - Deadline: +292278994-08-17T07:12:55.807+0000, 9223370349404513532 MILLISECONDS overdue [22/Jun/2023:16:13:18-875] [ERROR] - Deadline: +292278994-08-17T07:12:55.807+0000, 9223370349404390160 MILLISECONDS overdue Thanks & Regards, Sreenivas httpclientslogs.zip <https://drive.google.com/file/d/19OFySVOP5c5YDGSmRDs7ogXO4KTQ7_RV/view?usp=drive_web> On Tue, Jun 20, 2023 at 11:02 PM Oleg Kalnichevski <ol...@apache.org> wrote: > On Tue, 2023-06-20 at 22:12 +0530, sreenivas somavarapu wrote: > > 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? > > No one is going to help you unless you can provide a proper reproducer > or at the very least a _complete_ wire / context log of the session. > > Oleg > > > > > > *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(DeadlineTimeou > > tException.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.PoolingAsyncClientConnectionManag > > er$3.<init>(PoolingAsyncClientConnectionManager.java:271) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManag > > er.lease(PoolingAsyncClientConnectionManager.java:266) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.InternalHttpAsyncExecRuntime.ac > > quireEndpoint(InternalHttpAsyncExecRuntime.java:105) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncConnectExec.execute(AsyncC > > onnectExec.java:141) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncExecChainElement.execute(A > > syncExecChainElement.java:54) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncProtocolExec.internalExecu > > te(AsyncProtocolExec.java:207) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncProtocolExec.execute(Async > > ProtocolExec.java:172) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncExecChainElement.execute(A > > syncExecChainElement.java:54) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncHttpRequestRetryExec.inter > > nalExecute(AsyncHttpRequestRetryExec.java:97) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncHttpRequestRetryExec.execu > > te(AsyncHttpRequestRetryExec.java:184) > > ~[httpclient5-5.2.1.jar:5.2.1] > > at > > org.apache.hc.client5.http.impl.async.AsyncExecChainElement.execute(A > > syncExecChainElement.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.execut > > e(CloseableHttpAsyncClient.java:97) > > ~[httpclient5-5.2.1.jar:5.2.1] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > -- Cheers, S. Sreenivas