How is memory managed in python?

Vishal Rana ranavishal at gmail.com
Tue Jul 20 11:51:51 EDT 2010


Thanks for your input.

On Mon, Jul 19, 2010 at 7:23 PM, Scott McCarty <scott.mccarty at gmail.com>wrote:

> I had this exactly same problem with Peel and as far as I could find there
> is no way reclaiming this memory unless you set max requests,  which will
> kill the Apache children processes after that number of requests.  It's
> normally something used for debugging,  but can be used to reclaim ram.
>
> On the flip side,  you could find your machine servers down and your child
> processes will reuse that memory when they receive another request that uses
> a huge amount of ram.  It really depends on how often you are doing that
> kind of processing,  how you want to tune apache.
>
> Scott M
>
> On Jul 19, 2010 9:31 PM, "Vishal Rana" <ranavishal at gmail.com> wrote:
> > Hi,
> >
> > In my web application (Django) I call a function for some request which
> > loads like 500 MB data from the database uses it to do some calculation
> and
> > stores the output in disk. I just wonder even after this request is
> served
> > the apache / python process is still shows using that 500 MB, why is it
> so?
> > Can't I release that memory?
> >
> > Thanks
> > Vishal Rana
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100720/52ad52f9/attachment-0001.html>


More information about the Python-list mailing list