Is Django "leaking memory"?
I've documented what is going on here: http://stackoverflow.com/questions/5494178/why-doesnt-memory-get-released-to-system-after-large-queries-or-series-of-queri Basically, the memory doesn't "grow continuously" but it isn't released to the system (yes DEBUG = False in settings.py). What I'm seeing is that after executing a series of large querysets, the memory never gets released to the system. I go into it in depth on the stackoverflow question. Is this the behavior to be expected or am I encountering a bug in Django? - Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Is Django "leaking memory"?
Python itself allocates memory in large chunks and can't release them until all objects in them have been garbage collected. Older versions of CPython didn't even release this chunks at all. On Wed, Mar 30, 2011 at 9:48 PM, dlamotte wrote: > I've documented what is going on here: > > http://stackoverflow.com/questions/5494178/why-doesnt-memory-get-released-to-system-after-large-queries-or-series-of-queri > > Basically, the memory doesn't "grow continuously" but it isn't > released to the system (yes DEBUG = False in settings.py). What I'm > seeing is that after executing a series of large querysets, the memory > never gets released to the system. I go into it in depth on the > stackoverflow question. Is this the behavior to be expected or am I > encountering a bug in Django? > > - Dan > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Read my blog! I depend on your acceptance of my opinion! I am interesting! http://techblog.ironfroggy.com/ Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Is Django "leaking memory"?
On Wednesday, March 30, 2011 06:48:15 pm dlamotte wrote: > I've documented what is going on here: > > http://stackoverflow.com/questions/5494178/why-doesnt-memory-get-released-t > o-system-after-large-queries-or-series-of-queri > > Basically, the memory doesn't "grow continuously" but it isn't > released to the system (yes DEBUG = False in settings.py). What I'm > seeing is that after executing a series of large querysets, the memory > never gets released to the system. I go into it in depth on the > stackoverflow question. Is this the behavior to be expected or am I > encountering a bug in Django? > > - Dan Interestingly enough there was something like this today on stackoverflow[1] It's linux specific and uses sysctl. It might be helpful echo 1 > /proc/sys/vm/drop_caches [1] http://stackoverflow.com/questions/5483096/free-the-linux-page- cache/5483237#5483237 Mike -- Life is like an egg stain on your chin -- you can lick it, but it still won't go away. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.