Skip to content

Instantly share code, notes, and snippets.

@hispanic
Created November 26, 2015 12:47
Show Gist options
  • Select an option

  • Save hispanic/59b5882399b7c433bbc4 to your computer and use it in GitHub Desktop.

Select an option

Save hispanic/59b5882399b7c433bbc4 to your computer and use it in GitHub Desktop.
HttpClient Logging - Connection leak
Connection request: [route: {}->http://myhost:8080][total kept alive: 2; route allocated: 50 of 50; total allocated: 52 of 100]
@hispanic
Copy link
Author

This is what the log will show when you have a connection leak and your application is starved of connections. Whenever the number of allocated connections reaches the maximum allowed for a particular route (or all connections, in total), your application will not be allowed to make any more requests via HttpClient until one of the allocated connections is released back to the connection pool.

For more information, please see How to Read HttpClient Logging and Prevent Connection Leaks.

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