-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Memory increases with 3.2.3 #39838
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
Comments
Thanks for the report. Unfortunately, without some more information we won't be able to diagnose the problem. It looks like your application contains a memory leak. I find that the best way to analyse a memory leak is by taking a series of heap dumps and then compare them looking for an increasing number of a particular type of object being retained in the heap. Due to the risk of a heap dump containing secrets, such analysis is often best done by you. Alternatively, if you're confident that the heap does not contain any information that should not be public, you could share them with us here and we can take a look. |
What do you mean? Do you have data showing more memory consumed by Spring Boot classes? Did you attach a memory profiler to the application? Please provide more information - right now this report isn't actionable for us. |
Thanks for the answer. |
Regarding what I said about AWS, we noticed that only in apis we use spring-cloud-aws (latest version 3.1.0) this problem occurred with the springboot update. |
Please focus analysis on Problem Suspect 3 of undertow. We thing it this item. |
Thanks for the additional details. Spring Boot 3.2.3 upgraded to Undertow 2.3.12.Final. I suspect that it contains a regression that is causing the memory leak. Please try using Spring Boot 3.2.3 with Undertow downgraded to 2.3.10.Final which is the version used by Spring Boot 3.2.2. You may also want to try Undertow 2.3.11.Final to narrow things down further. |
Hi @clucca-gb, are you passing in an executor to the Undertow servlet like this? @Bean
public UndertowDeploymentInfoCustomizer undertowDeploymentInfoCustomizer() {
return deploymentInfo -> deploymentInfo.setExecutor(new CustomExecutor());
} Using Undertow in the default configuration did not cause problems for me until I switched to using a different executor. |
@Tythor Hello! |
By the way, we changed Undertown versions to the suggested ones and Memory Leak no longer occurred anymore!
|
Hi,
|
That's good news. Thanks, @clucca-gb. Please open an Undertow issue so that they can investigate why configuring a custom executor as you have done now causes a memory leak. I'll close this issue for now as I don't think there's anything we can do about this in Spring Boot. |
@zhlian94 your problem appears to be unrelated. As far as I tell you're using Tomcat, not Undertow, and are perhaps using a Reactor Netty based WebClient too. If you'd like some help investigating why your application appears to be leaking memory, please ask on Stack Overflow to begin with. |
After migrating 3.2.2 to 3.2.3, in our apis memory started to rise until the pods fell:
With 3.2.2:
In our tests it appears to be a problem related to aws.
The text was updated successfully, but these errors were encountered: