Hi Oleg,


Hope you were able to access logs provided and in the process of analyzing
them. Just a bit of information which might be useful in analyzing.

We are using *execute* method of *HttpAsyncClient* by passing *HttpContext*
parameter. Below is how we are constructing *HttpContext* object.



HttpClientContext clientContext = HttpClientContext.create();

CookieStore cookieStore = new BasicCookieStore();

clientContext.setCookieStore(cookieStore);



clientContext.setAttribute(“xyz”, <some object>);

clientContext.setAttribute(“mno”, "”);



clientContext.setProtocolVersion(<HTTPVersion being received>);



Regards,
Sreenivas

On Fri, Jun 23, 2023 at 1:38 PM Oleg Kalnichevski <ol...@apache.org> wrote:

> On Thu, 2023-06-22 at 22:46 +0530, sreenivas somavarapu wrote:
> > 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
> >
>
> I image just connection management logs could have sufficed, as
> described here:
>
> https://hc.apache.org/httpcomponents-client-5.2.x/logging.html
>
> This would radically reduce the size of log files.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
>

-- 
Cheers,
S. Sreenivas

Reply via email to