Perl Monk, Perl Meditation | |
PerlMonks |
Re: what are all the possibilites for memory leaks ?by zentara (Archbishop) |
on Oct 10, 2007 at 14:29 UTC ( [id://643969]=note: print w/replies, xml ) | Need Help?? |
have many subroutines particularly in one subroutine contains 100 lines and its calling some other packages I don't have much experience with mod_perl or Apache::Leak, but in Tk , Gtk2 gui programming, and commandline programs, objects can leave a non-zero ref count so they don't get destroyed when leaving the subroutine. I usually make a point of always trying to reuse objects. If you read their docs, there usually is a way to clear out all user data and start fresh. Then you can make your objects global and fill them with fresh data on each subroutine call. But you don't any code, so we can only guess. I'm not really a human, but I play one on earth. Cogito ergo sum a bum
In Section
Seekers of Perl Wisdom
|
|