Better a false positive than an un-reported bug. :-) On Thursday, 3 April 2014 16:12:59 UTC-5, Rick Ree wrote: > > So, I'm pretty sure I was mistaken about this being a memory leak. My app > had a bug in which a SELECT form field (options widget) was being populated > by hundreds of thousands of items from the db. This caused memory use to > exceed server limits when the view was rendered multiple times in rapid > succession. In the absence of this, garbage collection does seem to proceed > normally. Sorry for the confusion. > > On Wednesday, April 2, 2014 4:59:43 AM UTC-5, Rick Ree wrote: >> >> Yes, the leak seems to be associated with rendering data in a view. >> On Apr 2, 2014 3:57 AM, "Paolo Valleri" <paolo.vall...@gmail.com> wrote: >> >>> I run nearly the same example: >>> def f(): >>> a=list(range(100000)) >>> return 'ok' >>> After about 200 downloads the web2py process grew up to 100M. Tested on >>> a system with 8Gb ram, ubuntu 12.04 >>> >>> paolo >>> >>> On Wednesday, April 2, 2014 5:57:51 AM UTC+2, Rick Ree wrote: >>>> >>>> Ubuntu 12.04 and 13.10. I'm running web2py from the git repo, but >>>> observed this in 2.8.2 as well. >>>> >>>> On Tuesday, April 1, 2014 10:40:55 PM UTC-5, Massimo Di Pierro wrote: >>>>> >>>>> This should not be happening. What OS? What wev2py version? >>>>> >>>>> On Tuesday, 1 April 2014 10:00:08 UTC-5, Rick Ree wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> If I create a new app and put a single function in default.py: >>>>>> >>>>>> def f(): >>>>>> return dict(a=list(range(100000))) >>>>>> >>>>>> and then repeatedly call this using wget, e.g. wget >>>>>> http://localhost:8000/default/f.html, then memory usage of web2py >>>>>> will creep higher with each call. Is this a memory leak, or will the >>>>>> memory >>>>>> eventually be reclaimed? Is there something I can do in f() to avoid >>>>>> this? >>>>>> >>>>>> thanks, >>>>>> -Rick >>>>>> >>>>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "web2py-users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/web2py/_cB4Ibm5ilc/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >>
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.