Skip to content
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

OutOfMemoryError after upgrade to Spring Boot 3.1.4 #37798

Closed
rasifix opened this issue Oct 9, 2023 · 4 comments
Closed

OutOfMemoryError after upgrade to Spring Boot 3.1.4 #37798

rasifix opened this issue Oct 9, 2023 · 4 comments
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid

Comments

@rasifix
Copy link

rasifix commented Oct 9, 2023

After upgrading to Spring Boot 3.1.4. we are experiencing OutOfMemoryErrors. I see an ever increasing number of io.micrometer.tracing.otel.bridge.OtelTraceContext / SpanFromSpanContext. Obviously, we are using the io.micremter.tracing Otel bridge. Downgrading to Spring Boot 3.1.3 resolves the issue immediately. For microservices with high load this leads to OoME within a couple of hours. For microservices with low load, this is not really relevant.
The trace contexts are retained from a thread local variable (which one I have not been able to find out yet). I assume this has to do with the dependency update as requested by #37262. I am still opening the issue here because it affects the latest 3.1.x Spring Boot version.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 9, 2023
@vpavic
Copy link
Contributor

vpavic commented Oct 9, 2023

What you're seeing is likely related to micrometer-metrics/tracing#363. You could try sticking with Spring Boot 3.1.4 but downgrading Micrometer Tracing to 1.1.4.

@scottfrederick
Copy link
Contributor

@rasifix Please let us know if the suggestion above from @vpavic makes the errors go away for you so we can confirm that it is a known issue with Micrometer.

If this doesn't work around the error, please provide a complete minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it and attaching it to this issue.

@scottfrederick scottfrederick added the status: waiting-for-feedback We need additional information before we can continue label Oct 9, 2023
@rasifix
Copy link
Author

rasifix commented Oct 10, 2023

downgrading to 1.1.4 resolves the issue. as this is a rather big impact issue, will there be a patch release soon?

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Oct 10, 2023
@bclozel
Copy link
Member

bclozel commented Oct 10, 2023

Micrometer Tracing 1.1.6 is being released and will be shipped with Spring Boot 3.1.5. Closing in favor of #37694.

@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2023
@bclozel bclozel added status: invalid An issue that we don't feel is valid for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

5 participants