hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCORE-429) pool statistics don't expose all 'pending' requests
Date Fri, 02 Dec 2016 19:09:58 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Oleg Kalnichevski resolved HTTPCORE-429.
       Resolution: Fixed
    Fix Version/s: 5.0-alpha2

This one turned out to be not so easy. There were two options how to fix the problem for individual
routes: by making {{#getStats}} method iterate through the entire global request queue thus
making it expensive under load or by maintaining an extra structure per each route to keep
track of route specific requests and making every lease / release operation a bit more expensive
but keeping  {{#getStats}} method cheap. I opted for the former.

Fixed in SVN trunk and 4.4.x branch. Please review / re-test.


> pool statistics don't expose all 'pending' requests
> ---------------------------------------------------
>                 Key: HTTPCORE-429
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-429
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.4.5
>            Reporter: gui
>             Fix For: 4.4.6, 5.0-alpha2
> During a performance run i noticed that the async http client was causing OOM exceptions.

> After enabling pool statistics, i did not see a big 'queue' in the pool (the 'org.apache.http.pool.PoolStats#getPending'
method always returns a small number)
> However, after some memory profiling it noticed that the pool has a lot of pending leaseRequests,
but those requests are not exposed in the poolstats. 
> I think the org.apache.http.pool.PoolStats#getPending should also include the leaseRequest

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message