Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to what are all the possibilites for memory leaks ?

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
  • Comment on Re: what are all the possibilites for memory leaks ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://643969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-23 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found