-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
psycopg.AsyncConnection.connect leaks memory on Mac #678
Comments
I can't reproduce the issue. Running your script, What Python version/OS are you using? My test is with Python 3.10 on Linux Which libpq implementation are you using (see Can you find which object is leaking? see this comment and following ones for some hint about how to find the type of object leaking. |
I am using Mac OS 14.1.1 (23B81) |
I'm afraid only one GC file doesn't help. What matters is to see the difference in counts between two iterations. Please use this comment as reference about how to snipe an eventual memory leak. |
I tested on Linux there is no leak it's happening only on Mac. On Mac the RSS keeps growing but on Linux it's steady. I tried your suggestions and can't see any difference in the gc.get_objects(). I will keep trying on Mac. |
Out of trying random things, maybe you can try to connect with Something else interesting to check is to try using Thank you for your help to look into it! |
This is probably caused by a memory leak in krb5, see psycopg/psycopg2#1662. Once a fixed krb5 version is released I can release new binary packages including it. |
Still waiting for 1.21.3 to close this. |
@greghudson do you think it would be possible to make a release of krb5 including this bugfix? It is affecting psycopg macOS users. |
When using the psycopg.AsyncConnection.connect we have observed that it leaks memory, attached is a sample code.
Using Version: 3.1.12 of psycopg
The text was updated successfully, but these errors were encountered: