Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How aggressively does Perl clean up when you exit()?

by jeroenes (Priest)
on Nov 14, 2001 at 22:02 UTC ( #125378=note: print w/ replies, xml ) Need Help??


in reply to How aggressively does Perl clean up when you exit()?

As for how you can monitor your system resources, I would suggest lsof1 for that. Use it with the -r option while perl processes are created and killed, and you'll know whatever stays open or not. With lsof you can also monitor sockets etc.

And you'd need 'ps' or any of the Proc modules (Proc, eg Proc::ProcessTable) to monitor memory usage. As stated elsewhere, memory cleanup depends on your OS.

hth,

Jeroen

1 Assuming you are on *nix

Update: I also come across a mac os9 utility that lists open files


Comment on Re: How aggressively does Perl clean up when you exit()?
Re: Re: How aggressively does Perl clean up when you exit()?
by demerphq (Chancellor) on Nov 14, 2001 at 23:17 UTC
      And of course the Resource Kit, I shudder to think about having to run Windows without Resource Kits.

      "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-07-30 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls