Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

memory used by a process??

Status
Not open for further replies.

AQWQ

Programmer
Aug 5, 2001
33
IN
How to find the memory utilised by a process using ps aommand in unix???i am able to get the cpu utilisation but not the memory!!!please help

Thanx in advance Santhosh Ravindran
 
Have you already tried the 'top' command ? The Muppeteer.



Don't eat yellow snow...
 
Use ps -el
The l sigifies a long listing which includes memory usage under the SZ column.
 
I don have the top utility for my version of unix.

Hi trunix i tried ps -el but to my surprise its giving me a blank..

the command i tried was ps -el | grep <process name>when i tried ps -efl | grep <processname> it lists out the details but i am not able to figure out the field for memory usage.plss help.. Santhosh Ravindran
 
Santosh,

Before you do:

ps -ef | grep <processname>

do a:

ps -f to look at the column titles Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Try [tt]ps -aux[/tt] or [tt]ps aux[/tt]. Depends on your OS family.
I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top