-
Notifications
You must be signed in to change notification settings - Fork 419
Memory leak when using command_timeout
#830
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
Comments
This seems to be a windows proactor bug in asyncio. I can't reproduce the leak on Linux. |
elprans
added a commit
that referenced
this issue
Sep 21, 2021
Under certain circumstances the `TimerHandle` used for query timeouts does not get cleaned up in a timely fashion resulting in a temporary (`timeout` seconds) memory leak. Fixes: #830
Actually, I think I found the leak. See #831 |
Thanks for looking into it. I cannot immediately test it on windows since I don't have all the cython build chain installed, sorry. |
this does reproduce for me on linux, running fedora 34. |
Same for Ubuntu 20.04 |
elprans
added a commit
that referenced
this issue
Nov 6, 2021
Under certain circumstances the `TimerHandle` used for query timeouts does not get cleaned up in a timely fashion resulting in a temporary (`timeout` seconds) memory leak. Fixes: #830
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the issue with a local PostgreSQL install?:
uvloop?:
This was initially reported on sqlalchemy by @mvbrn here sqlalchemy/sqlalchemy#7058 and followed up at sqlalchemy/sqlalchemy#7059, but we can reproduce the issue without using sqlalchemy.
Here is the test I'm running:
Running uses quite a bit of ram an the final print, on windows is something like
Removing the
command_timeout
no noticeable leak is observed:The text was updated successfully, but these errors were encountered: