HTTP 连接池利用率检查

HTTP connection pool utilization check

在我的 spring-boot 2.1 应用程序中,我设置了最多 100 个连接的 PoolingHttpClientConnectionManager。

有没有办法知道 HTTP 连接池中使用了多少 HTTP 连接?

PoolingHttpClientConnectionManager 实现了具有 getStats 和 getTotalStats 方法的 org.apache.http.pool.ConnPoolControl。使用它们。