Allen Wang created HTTPCLIENT-1404:
--------------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]