How do I begin debugging a python memory leak?
r.grimm at science-computing.de
Fri Sep 18 12:24:17 CEST 2009
On 17 Sep., 02:10, Matthew Wilson <m... at tplus1.com> wrote:
> I have a web app based on TurboGears 1.0. In the last few days, as
> traffic and usage has picked up, I noticed that the app went from using
> 4% of my total memory all the way up to 50%.
> I suspect I'm loading data from the database and somehow preventing
> garbage collection.
> Are there any tools that might help me out with this?
If have one of the following plattforms
X86/Linux, AMD64/Linux, PPC32/Linux, PPC64/Linux and X86/Darwin (Mac
have a look at valgrind.
I used of often for searching the memory leaks in c++. It's a great
tool to analyse your memory behaviour.
More information about the Python-list