You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2017/05/02 13:35:05 UTC

[jira] [Updated] (HTTPCLIENT-1404) Provide connection pool usage statistics for PoolingClientConnectionManager

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

Oleg Kalnichevski updated HTTPCLIENT-1404:
------------------------------------------
    Fix Version/s:     (was: Future)

> Provide connection pool usage statistics for PoolingClientConnectionManager
> ---------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1404
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1404
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient (classic)
>            Reporter: Allen Wang
>            Priority: Minor
>
> For clients that have high request rate to their corresponding services, it is critical that the client has an efficient connection pool and reuse free connections as often as possible, and is free from bugs like not releasing resources from http response that causes low reuse of connections and timed out waiting for connection. To meet that requirement, the developers need to have insight of current state of the connection pool.
> Connection pool, like any object pool or cache, needs to have statistics for fine tuning, like Guava CacheBuilder that provides statics for cache hit ratio and many others.
> It will be very beneficial if the PoolingClientConnectionManager provides following statistics:
> - count of occurrences that a free entry is obtained when requesting a connection 
> - count of occurrences that a new entry is created
> - count of occurrences that an entry is released
> - count of occurrences that an entry is deleted
> I was able to provide such statistics for the deprecated ThreadSafeClientConnManager in Ribbon:
> https://github.com/Netflix/ribbon/pull/47
> But it seems that PoolingClientConnectionManager does not provide such hooks.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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