Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Figuring out which perl file is leaking memory

Michael Gardner

2009-06-11

Replies: Find Java Web Hosting

Author LoginPost Reply
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 causing
the leak. I've tried setting up a test server and hitting the likely
suspects with ab, but no dice so far.

So, my question is: is there a way for me to figure out *which perl
file* is causing the leak, without just manually testing every code path
of every file?

-Michael
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.