The Apache HTTPClient 4.3 is using a Connection Pool. We would like to Monitor the available Connection Pool Stats.
The Code is is using the org.apache.impl.conn.PoolingHttpClientConectionManager. With getTotalStats() or getStats(HttpRoute route) you can get an org.apache.http.pool.PoolStats class containing available, leased, max and pending connections. All this values are int values.
Is there a plugin or extension available?
Is there another way to monitor the pool with allready available Dynatrace features?
Answer by Andreas G. ·
I assume/hope there is a JMX Metric that you can poll. Create a new Custom JMX MEtric and then use the Metric Browser available in that Metric Definition to see which JMX Metrics are avaiable and whether you can find one for that connection Pool
Answer by Oliver E. ·
Just looked at the github "httpclient-jmx". It is not working with httpclient 4.3.4 PoolingHttpClientConnectionManager.
We try to adjust the code to our needs. I will post if we have a solution.
One big disadvantage is, that the programmers need to change the applications and include the "httpclient-jmx". Is there a other possibility to montior the Connection Pools with out the need to change the applications?
JANUARY 15, 3:00 PM GMT / 10:00 AM ET