[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16968965#comment-16968965
 ] 

shatk commented on HTTPCLIENT-2024:
-----------------------------------

We are using apache camel [camel-http4] in our project which is using 
httpclient-4.5.7 to connect to downstream API's.  In Prod env on high load we 
are seeing request drop.  say 4  request drop out of 4 lakhs request.  
Exception we are receving is _NoHttpResponseException : host:port failed to 
respond_ . Provided below the stacktrace of the error.  Issue persists with 
4.5.10  as well. But when we tested with httpclient-3.1, there is no request 
drop.  Please advise. 

org.apache.http.NoHttpResponseException: domainurl:80 failed to 
respondorg.apache.http.NoHttpResponseException: domainurl:80 failed to respond 
at 
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)
 at 
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
 at 
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
 at 
org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
 at 
org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157) 
at 
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
 at 
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
 at 
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) 
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) 
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at 
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
 at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
 at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
 at 
org.apache.camel.component.http4.HttpProducer.executeMethod(HttpProducer.java:334)
 at 
org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:193) at 
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
 at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
 at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
 at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)

 

> NoHttpResponseException on high Load
> ------------------------------------
>
>                 Key: HTTPCLIENT-2024
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2024
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.7
>            Reporter: shatk
>            Priority: Major
>              Labels: camel-http4,, http-client
>
>  
> Getting _NoHttpResponseException : host:port failed to respond_  on high 
> Load. 
> This is happening for httpclient-4.5.7  as well as httpclient-4.5.10  version 
> of apache http client on high load [100 TPS]
>  Apache http client is used internally by camel http4. 
> [https://github.com/HydAu/Camel/blob/master/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java]
>  > camel http4 connection config :
> connectionsPerRoute : 100
> maxTotalConnections : 1000 
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to