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] [Commented] (HTTPCLIENT-1404) Provide connection pool usage statistics for PoolingClientConnectionManager
Date Fri, 27 Sep 2013 08:34:04 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1404:
-----------------------------------------------

Allen,
Realistically, if this feature is not contributed by an external contributor it is very unlikely
I will find time to implement it in my free time. So, scratching your own itch should be the
best way forward here.

Oleg
                
> 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: HttpConn
>            Reporter: Allen Wang
>            Priority: Minor
>             Fix For: Future
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message