Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by jeroenes (Priest)
on Nov 14, 2001 at 22:02 UTC ( [id://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()?

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125378]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found