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 Thu, 26 Sep 2013 18:57:04 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1404:

You are welcome to add missing hooks

> 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
>            Reporter: Allen Wang
> 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

View raw message