Skip to content

Diagnostics from AsyncHttpClient #1130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stepancheg opened this issue Apr 5, 2016 · 2 comments
Closed

Diagnostics from AsyncHttpClient #1130

stepancheg opened this issue Apr 5, 2016 · 2 comments

Comments

@stepancheg
Copy link
Contributor

Requesting diagnostics API for AsyncHttpClients. E. g. methods like:

int getActiveRequestCount();
int getPooledConnectionCount();
int getHostCountWithPooledRequests();
List<String> getActiveRequests();
List<String> getPooledConnectionHosts();

and so on.

Currently I'm trying to find a leak in a program which looks like a leak in async-http-client to me (AsyncHttpClient reports I hit maxConnections limit while netstat reports much lower number of open connections). If async-http-client had such diagnostics API, I could verify my hypothesis. Currently I have no idea whether problem is in AsyncHttpClient or I use AsyncHttpClient API incorrectly.

Such API would be also very useful for monitoring (to plot e. g. active request count).

@slandelle
Copy link
Contributor

Contribs welcome!

Diagoras added a commit to Diagoras/async-http-client that referenced this issue Sep 26, 2016
Diagoras added a commit to Diagoras/async-http-client that referenced this issue Oct 31, 2016
@slandelle slandelle added this to the 2.1.0 milestone Nov 14, 2016
@stevenschlansker
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants