uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

Memory leak in uvloop and tornado

Open totaki opened this issue 6 years ago • 6 comments

  • uvloop version: 0.11.1
  • Python version: 3.6.4
  • Platform: Ubuntu 16.04 x64
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: This no effect

I have a platform to which mobile devices will constantly connect via TCP, about 20k per instance. After a few hours of work, memory consumption rises to 2 GB. We use tornado 5.0.1 as TCP server and install uvloop for loop for asyncio. I conducted one experiment using tracemalloc, when the devices are disconnected and then the memory leak is again connected in this code line , the number of objects and the total expanding. Can you help find what these objects are and how to remove this leak? Снимок экрана от 2019-06-09 17-39-17

totaki avatar Jun 09 '19 14:06 totaki

Hi! There have been several fixes related to memory leaks since uvloop 0.11.1. Could you please try 0.13.0rc1 and let us know if the leak still occurs?

jlaine avatar Jun 14 '19 10:06 jlaine

Hi, thank you, i try this and report then!

totaki avatar Jun 15 '19 13:06 totaki

Did you get a chance to retest?

jlaine avatar Aug 12 '19 12:08 jlaine

Sorry, i forget this. I fix my another problem and this not check with another uvloop. In this holidays i repeat my experiment, and report it.

totaki avatar Aug 13 '19 12:08 totaki

@totaki any update on this?

1st1 avatar Oct 24 '19 21:10 1st1

Was everything all good with this in the end?

Integralist avatar Jun 17 '20 11:06 Integralist