Re: Figuring out which perl file is leaking memory

2009-06-16 Thread Michael Gardner
Thanks for the tips. For the record, it turned out that the "leak" wasn't really a leak at all: we have a *large* directory structure in which each directory was using as its index file a symlink to the same perl file (which in turn used the REQUEST_URI to figure out what content to serve). Apparen

Re: Figuring out which perl file is leaking memory

2009-06-12 Thread Michael Gardner
William T wrote: > There are some leak analysis modules that may help (Devel::Leak I > think). I've tried using them in the past, but they haven't worked > well for me for various reasons. I found commenting out early branch > points allowed me (most of the time) to narrow down where the leak was

Figuring out which perl file is leaking memory

2009-06-11 Thread Michael Gardner
I'm working with some old perl code that was previously running under modperl 1.x, but was recently updated for 2.x. There is a fairly severe memory leak somewhere in this code, but I'm having a hell of a time tracking it down. The problem is that I don't know which of our many perl files is causi

Diagnosing memory usage

2008-06-15 Thread Michael Gardner
I've inherited an existing Apache+mod_perl 1.3.x server. I am not very experienced with Apache nor mod_perl, so I have to pick up things as I go along. Recently I built a new version of Apache (1.3.41) with static mod_perl 1.30, and it seems to work. The problem is that every few days or so