Is web_request.py and web_response.py supposed to grow in memory as incoming requests increase ? #10521
Closed
ShamariYoti
started this conversation in
General
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question. I've been trying to detect a memory leak because on our graph it looked like a slow increase of the memory usage which doesn't get cleaned up. I used
tracemalloc
trace the memory usage and the two areas that seemed to grow in memory isweb_request.py
andweb_response.py
. You can see on the image thatweb_request.py
grew to 21.2 MiB.I wrote a small test program to see if I could get the same behaviour and I did.
My question is, shouldn't aiohttp be cleaning up requests once they have been served, and is this a possible leak ?
Beta Was this translation helpful? Give feedback.
All reactions