Detecting memory leaks on apache, mod_python

Graham Dumpleton Graham.Dumpleton at gmail.com
Fri Dec 21 05:25:50 EST 2007


On Dec 21, 7:42 pm, Ilias Lazaridis <il... at lazaridis.com> wrote:
> On Dec 19, 5:40 am, Ilias Lazaridis <il... at lazaridis.com> wrote:
>
>
>
> > On Dec 17, 8:41 am, Ilias Lazaridis <il... at lazaridis.com> wrote:
>
> > > How to detect memory leaks of python programms, which run in an
> > > environment like this:
>
> > >  * Suse Linux 9.3
> > >  * Apache
> > >  *mod_python
>
> > > The problem occoured after some updates on the infrastructure. It's
> > > most possibly caused by trac and it's dependencies, but several
> > > components of the OS where updated, too.
>
> > > Any nice tools which play with the above constellation?
>
> > > Thank's for any hints!
>
> > No tool available to detect memory leaks for python applications?
>
> So, anyone who hit's on this thread via a search will think
>
> a) that there's really no memory leak detection for python
> b) that this community is not very helpful

Comments like (b) will not help your chances one bit in respect of
getting an answer from anyone.

Maybe you should read:

  http://www.catb.org/~esr/faqs/smart-questions.html

Two things to note in here. First, choose your forum appropriately and
secondly show some courtesy rather than making accusations against the
community if no one answers.

If you want to see perhaps how you might be viewed by the open source
community when you make such a comment, perhaps also watch:

  http://video.google.com/videoplay?docid=-4216011961522818645

Now, since you think this is a Trac problem, why don't you go ask on
the Trac mailing list.

  http://groups.google.com/group/trac-users?lnk=li

Even a search of that forum will most likely yield previous
discussions about growing memory use of Trac as a result of things
like Python wrappers for Subversion or certain database adapters. It
may be a case of using a different version, or in some cases
configuration of your hosting environment, if using Apache, to recycle
Apache child processes after a set number of requests so as to restore
process sizes back to a low level.

So, do some research first in the correct places and then perhaps ask
any additional questions in the correct place also.

Graham



More information about the Python-list mailing list