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

check memory utilization by each process & each users

 
Highlighted
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 6
Highlighted
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

Highlighted
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
Highlighted
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
Highlighted
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
Highlighted
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
Highlighted
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.