-
Notifications
You must be signed in to change notification settings - Fork 652
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
HttpClient leak messages #3533
Comments
@travispeloton Please provide at least the code which shows how you use |
@violetagg Extended logging has already been enabled. You may need to scroll down in the attached document to see stacktraces with that extended logging. |
Ooo right, sorry! ... and the code that shows how you use it? Because the logs show that the data was sent to the consumer?
|
We use the following
And provide the following retry policy,
An example request using
|
I'm realizing that for that URI in the logs that we are doing the following,
However, we're not consuming the response. I remember reading that there is a way to properly handle this situation. Trying to find an example. |
@travispeloton That's the issue - you are holding the buffer and never release it! You can use |
right, I see that now; let me update my code and see if I'm left with any more leak messages thanks! |
@violetagg if we are reading HTTP client metrics (e.g., response status code) via Micrometer, do we always need to use
vs
Question is, if we do the second one, will we not see those response code metrics in Micrometer? |
I think they do |
^ the above fixed my issue in one of my services. Closing. Thanks @violetagg ! |
A couple of our projects frequently log
LEAK
messages, and they have references to the HttpClient in most cases. A sample of the stacktraces are listed below, but we are unsure how to proceed in the investigation.Your Environment
java -version
): 21uname -a
): eclipse-temurin:21-jdkThe text was updated successfully, but these errors were encountered: