-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Spring WebFlux "ResourceLeakDetector:LEAK" #25213
Comments
Hello @xuep2006 , |
Hello @Pratikjoy , JVM Command line-Dio.netty.leakDetectionLevel=PARANOID -Dfile.encoding=UTF-8 Log
|
@xuep2006 Hi! Issue easily reproduced at spring-boot-starter-webflux:2.1.14.RELEASE. But I could not reproduce it at spring-boot-starter-webflux:2.4.2. Error message "LEAK: ByteBuf.release() was not called before it's garbage-collected." is not appeared at log output. Are you able to update webflux version from 2.1.14.RELEASE to 2.4.2 and try to reproduce issue again? |
Yes this might have been addressed with recent fixes related to #26232. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Hi get same error I changed webflux to 2.45 the error i get is : [ntLoopGroup-2-2] io.netty.util.ResourceLeakDetector : LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information. 'org.springframework.boot' version '2.1.9.RELEASE' appreciate your help |
@rchalicham hello!
According to comment this issue fixed at 5.3.2. It looks like 5.1.10.RELEASE version is used instead of 5.3.3 one. I recommend to manage all spring modules versions only by 'org.springframework.boot' one. And plug any spring-boot starters without setting version. I think error disappear if you set 'org.springframework.boot' version to 2.4.2 or higher. |
Faced with the same issue, I use Spring Boot with 2.2.10.RELEASE version. |
@AtticusLv according to comment fix was backported to 5.2.x. on December 2020. Spring boot 2.2.13.RELEASE has released on January 2021. Therefore I think fix should be included to 2.2.13.RELEASE. |
Spring Boot Version
spring-boot-starter-webflux:2.1.14.RELEASE
spring-boot-starter-reactor-netty:2.1.14.RELEASE
reactor-netty:0.8.18.RELEASE
jdk 1.8.0_162
Problem
Hi,
I am using jmeter to test the performance of a microservice, the test case is:
-Dio.netty.leakDetectionLevel=paranoid
.An exception occurs:
io.netty.util.ResourceLeakDetector:LEAK: ByteBuf.release() was not called before it's garbage-collected
.When I remove the
subscribeOn
in the code, no exception occurs.Code
Exception stack
The text was updated successfully, but these errors were encountered: