-
Notifications
You must be signed in to change notification settings - Fork 189
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 - pamqp\base.py #628
Comments
Since I apparently managed to resolve someone's memory leak with #615 I wonder if you are hitting the same issue. If their leak is caused by https://docs.python.org/3/library/gc.html has some info that might be usefull in your debugging endeaver. |
hey! thanks for reaching out! I'll try to come back with more info in order to pinpoint a potential leak. |
Did you find the memory leak? |
Is there any update on this? We are also experiencing a high memory usage issue after each batch of publishing |
I am investigating a memory leak in a service and I've managed to see the following with tracemalloc:
At the first run I get the following:
[..]\venv\Lib\site-packages\pamqp\base.py:60: size=2616 B, count=44, average=59 B
After submitting some messages in the queue, it seems that the size only increases:
[..]\venv\Lib\site-packages\pamqp\base.py:60: size=7746 B, count=129, average=60 B
and eventually it reaches14.3 KiB
I might be doing the test in a wrong manner, so please let me know what information is needed to actually confirm any eventual memory leak.
The used version is 9.4.1
This is the code:
And self.process_message has the following structure:
The other shown stats do not have significant differences in the memory size after 100+ runs of self.process_message, with pamqp\base.py:60 being the single one that constantly increases.
The text was updated successfully, but these errors were encountered: