Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Virtual Memory Usage

by tirwhan (Abbot)
on Feb 06, 2006 at 23:07 UTC ( [id://528370]=note: print w/replies, xml ) Need Help??


in reply to Virtual Memory Usage

You didn't specify, but if you're doing this on Linux you can use /proc/self/stat (see man proc for the details).

open my $stat,"<","/proc/self/stat" or die "Can't open /proc/self/stat +"; my ($vsz,$rss)=(split ' ',<$stat>)[22,23]; print "$vsz - $rss\n"

Or you could use the ps command or Unix::Process


All dogma is stupid.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found