Benoit Caron wrote:
> 
>  sub UNIVERSAL::AUTOLOAD {
>                my $class = shift;
>                warn "$class can't \$UNIVERSAL::AUTOLOAD!\n";
>              }
> 
> to trap the memory leaking that can occur if a sub is undefined. But
> where should I put this sub? In all my mod-perl module? In my startup.pl
> file?

You can either put it in your startup.pl, or in a <Perl></Perl> section in
your httpd.conf file.  I do the latter.  Putting it in all your mod_perl
modules would be redundant (and might give you compile-time errors).

> 
> And, since I'm there, anyone can recommend me a way to hunt the memory
> leak of my modules? I've inherit an already well developped site that
> leak a lot and I'd like to trap those memory leaking... I'm on Solaris,
> if that can help...

Apache::Leak

-Adi

Reply via email to