-
Notifications
You must be signed in to change notification settings - Fork 3.6k
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Memory leak in long running stream related to ConcurrentAsyncCallback's #24046
Comments
@maxcon Thanks for reporting, it looks like a serious regression. The async callbacks were changed in 2.5.7. A reproducer would be great. |
Here is the reproducer: https://github.com/maxcom/akka-streams-oom. Process runs fine for at least 10 minutes on Akka 2.5.6, and runs of of memory on first minute in 2.5.7. |
Thanks! |
With the new async callbacks we have started to store async callbacks in Unfortunately streams of streams are implemented by using async callbacks, which never get released and thus OOM. |
To be more concrete, the issue here is
For Problem is probably there for the opposite as well ( |
Hi guys, any estimate on fix? |
We will take a deep look at this tomorrow. |
We have a long running stream that works fine in Akka 2.5.6. After update to 2.5.7, process runs out of memory after 5-10 minutes of processing. I see large number (~35000) of
GraphStageLogic.ConcurrentAsyncCallback
instances in heap dump. Each of them holds a reference to some data objects that was processed in past.I do not have a clean reproducer yet.
Here is screenshot from Eclipse Memory Analyzer:
and one more:
The text was updated successfully, but these errors were encountered: