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
Potential Memory leak with concurrent.futures.ThreadPoolExecutor's map #85754
Comments
I've been debugging a high memory consumption in one of my scripts and traced it back to the When further investigating and playing around, I found out that when using Here is an example of a code to recreate this issue:
|
Still no fix? :( |
I ran into this same issue (with a ProcessPool). And after a bit of probing it seems that it's more a generator issue. Unused generators (what .map() returns) are not being garbage collected. If I do Edit: |
I can't believe this remains unfixed. Any workarounds? |
Any ideas on how to fix this issue? |
I don't have the bandwidth to dig into multiprocessing issues. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: