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

Fixing memory leaks when fractal used in daemons #563

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AtCliffUnderline
Copy link

Due to every transformer being filled with the current scope, there is a reference recursion.

Transformer -> Scope -> Resource -> Transformer -> Scope...

This causes memory leaks in daemons and workers, I guess because GC is not able to collect these cyclomatic references; even running gc_collect_cycles after each job is not helping.

I think this is not breaking change, but kind of messy. Begging for comments and help with this issue

@gam6itko
Copy link

Hello. I also need to run fractal in long-lived applications. My opinion is that the transformer should be immutable and the method setCurrentScope should be removed.

@gam6itko
Copy link

Hey @AtCliffUnderline look at my solution of this issue. I hope it will help you to avoid memory leaks

#569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants