-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Some sort of memory leak or just significant memory growth in 0.11.2 manifesting in Python Poetry #225
Comments
It is possibly due to |
I reverted the lru_cache changes on a test branch and it made no noticeable change to the memory use. |
I was wrong; it does appear to have fixed it. I'd left a PYTHONTRACEMALLOC set in my test script and that was causing it to blow through the memory limit regardless. This very basic revert of the lru_cache stuff in this commit makes the memory problem go away Secrus@aef5000 |
We may not need those |
@dsalisbury Thank you for opening this issue! Would a workaround be to downgrade to EDIT: |
Weird. Shouldn't it be the other way around?
There is even a flake8-bugbear warning about it:
I assume we have a special case here and one big cache at class level requires less memory than many little caches at instance level? |
this exact warning was the reason I changed it. It's weird that it behaves this way... |
Since it was my change that introduced the leak, I will try to provide PR for it today |
Indeed the changed version constructs more objects than before. Each String object creates several instances of |
Closed by #227 |
wouldn't it be better yanked the effected versions on pypi? |
Hey!
This is a spin-off of python-poetry/poetry#6144
I'm running Poetry in a
docker build
within Bitbucket Pipelines CI (with a memory limit of 1GB applied on the Docker service). I see the container's memory grow and grow before the container gets killed at 1GB of usage. Another person on that issue was seeing the same behaviour in Circle CI.I've replicated it locally using regular
docker run
commands too and narrowed it down to commit 0449c53. My crude test harness (which just installs poetry with custom versions of tomlkit and the tries to install packages) gets killed on 0449c53 but not in the previous commit f8099e6.There's some recreation info here https://github.com/dsalisbury/poetry-6144
I'm attempting to dig into #212 to see more specifically where the problem arose.
The text was updated successfully, but these errors were encountered: