Re: How do I begin debugging a python memory leak?

2009-09-18 Thread Chris Withers
Matthew Wilson 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.

Re: How do I begin debugging a python memory leak?

2009-09-18 Thread Rainer Grimm
On 17 Sep., 02:10, Matthew Wilson m...@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

Re: How do I begin debugging a python memory leak?

2009-09-18 Thread Paul Rubin
Rainer Grimm r.gr...@science-computing.de writes: have a look at valgrind. Have you actually used that on Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I begin debugging a python memory leak?

2009-09-18 Thread Rainer Grimm
On Sep 18, 5:42 pm, Paul Rubin http://phr...@nospam.invalid wrote: Rainer Grimm r.gr...@science-computing.de writes: have a look at valgrind. Have you actually used that on Python? Not with python as far I can remember. But often with C++ executables, as i mentioned it. I you look at

How do I begin debugging a python memory leak?

2009-09-16 Thread Matthew Wilson
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

Re: How do I begin debugging a python memory leak?

2009-09-16 Thread Diez B. Roggisch
Matthew Wilson schrieb: 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

Re: How do I begin debugging a python memory leak?

2009-09-16 Thread Andrew Svetlov
guppy-pe On Sep 16, 8:10 pm, Matthew Wilson m...@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