Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Memory Monitoring

by salva (Canon)
on Apr 25, 2005 at 13:20 UTC ( [id://451179]=note: print w/replies, xml ) Need Help??


in reply to Memory Monitoring

I think you can get all the information from the top utility, i.e.:
$ top -n1 -c -b

You can parse its output from perl and forget about all the portability issues associated to /proc

Replies are listed 'Best First'.
Re^2: Memory Monitoring
by jhourcle (Prior) on Apr 25, 2005 at 13:44 UTC

    I think there might be some portability issues, as those flags don't work on the versions of top that I have. (Solaris and MacOS):

      oops, it seems that there are several top implementations, with incompatible command line options...

Log In?
Username:
Password:

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

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

    No recent polls found