[SciPy-user] How to free unused memory by Python
Mon Sep 3 08:35:31 CDT 2007
I never used it, but have you tried using valgrind?
On 9/3/07, massimo sandal <firstname.lastname@example.org> wrote:
> Anne Archibald ha scritto:
> > If it is memory exhaustion, all this business about "not freeing
> > memory back to the OS" is a red herring. No matter how old your
> > version of python and how little memory it ever releases back to the
> > OS, new objects will be allocated from the memory the python process
> > already has. If your process keeps growing indefinitely, that's not
> > malloc, that's your code keeping references to more and more data so
> > that it cannot be free()d. Perhaps look into tools for debugging
> > memory leaks in python?
> I'd love to find one. I have memory leaks here and there in my code (no
> doubt due to dangling references) but it is often damn hard to debug
> them. I asked on comp.lang.python but I found no useful answers. If you
> know of a memory debugging tool for python, let us know!
> Massimo Sandal
> University of Bologna
> Department of Biochemistry "G.Moruzzi"
> snail mail:
> Via Irnerio 48, 40126 Bologna, Italy
> tel: +39-051-2094388
> fax: +39-051-2094387
> SciPy-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user