General
cancel
Showing results for 
Search instead for 
Did you mean: 

check memory utilization by each process & each users

Primesh Abeysinghe
Frequent Advisor

check memory utilization by each process & each users

i need to check memory utilization by each process & each users glance is not working in this serve
6 REPLIES
Suraj K Sankari
Honored Contributor

Re: check memory utilization by each process & each users

Hi,
Try this

In terms of Memory.
#UNIX95=ps -e -o vsz,pid,ppid,args | sort -rn | head -20

In terms of Memory + user details
#UNIX95=1 ps -e -o vsz,pid,ppid,user,args | sort -rn | head -20

Suraj

Primesh Abeysinghe
Frequent Advisor

Re: check memory utilization by each process & each users

hi Suraj,

first command
UNIX95=ps -e -o vsz,pid,ppid,args | sort -rn | head -20

gave error sh: -e: not found.

but the second one

UNIX95=1 ps -e -o vsz,pid,ppid,user,args | sort -rn | head -20

make the result nice

Thank you
primesh
Suraj K Sankari
Honored Contributor

Re: check memory utilization by each process & each users

Hi again,

Sorry miss one letter
it will be like this
UNIX95=1 ps -e -o vsz,pid,ppid,args | sort -rn | head -20

Suraj
irshad ali
Frequent Advisor

Re: check memory utilization by each process & each users

Hi

i want to know for which OS version this command is suitable and its impact?

irshad
Primesh Abeysinghe
Frequent Advisor

Re: check memory utilization by each process & each users

hi irshed,

our system is hp-ux 11.23 above commands working in that

primesh
Viktor Balogh
Honored Contributor

Re: check memory utilization by each process & each users

Hi Primesh,

It should work on most Unix/Linux systems.
More info on UNIX95 compatibility:

http://docsrv.sco.com/DIFFS/UNIX95_Conformance.html
****
Unix operates with beer.