Django Channels doesn't release memory used by websocket after disconnect

Viewed 424

Basically I have a django docker-container and I'm looking at memory usage through the docker stats. I'm using channels for websocket connections. When the first connection starts, memory usage goes from 60 to 65 mb. Throughout the connection memory slowly goes up. Then, when the connection stops it doesn't release any of the memory. I checked with del method and everything seems to be deleted.

Any idea how I could check why the memory is not being released? Or what could be making the memory stay occupied?

0 Answers
Related