Computing.Net > Forums > Unix > memory usage of a process

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

memory usage of a process

Reply to Message Icon

Name: br1an
Date: October 3, 2002 at 21:28:50 Pacific
OS: Unix
CPU/Ram: 256
Comment:

Hi,
Anyone knows how to find out the memory usage of a process (if we know the procid or proc name) .
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: jimbo
Date: October 3, 2002 at 22:38:03 Pacific
Reply:

What unix flavor do you use? If it's Solaris try parising prstat output. Or you could install top and parse its output for that too.

-jim


0

Response Number 2
Name: James Boothe
Date: October 4, 2002 at 11:56:06 Pacific
Reply:

If your ps command supports -l, that includes the SZ column (as I replied to your earlier post). Per the ps man page, SZ column is defined as:

"The size in physical pages of the core image of the process, including text, data, and stack space."

Default physical memory page size is usually 4KB.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: memory usage of a process

Unix memory usage www.computing.net/answers/unix/unix-memory-usage/2143.html

Finding idle time of a process www.computing.net/answers/unix/finding-idle-time-of-a-process/7665.html

limit memory usage in Linux www.computing.net/answers/unix/limit-memory-usage-in-linux/1055.html