Closed GoogleCodeExporter closed 9 years ago
What triggers the loop? A simple example would be appreciated.
Original comment by rodrigo.moraes
on 24 Aug 2011 at 9:47
It's triggered by creating a Response object. From an interactive session:
>>> import webapp2
>>> import gc
>>> gc.collect()
0
>>> x = webapp2.Response()
>>> del x
>>> gc.collect()
8
>>> x = webapp2.Response()
>>> del x.out
>>> del x
>>> gc.collect()
0
This causes problems in production when serving large responses. Memory usage
increases by the size of the response each time and the instance tends to run
out of memory.
Original comment by sa...@google.com
on 24 Aug 2011 at 10:29
This issue was closed by revision 4b69d8bcdeb3.
Original comment by rodrigo.moraes
on 24 Aug 2011 at 6:42
Original issue reported on code.google.com by
sa...@google.com
on 23 Aug 2011 at 2:30