System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Memory utilization for process

 
Anoop R Nath
Advisor

Memory utilization for process

Dear All,

How I can get the memory utilization in percentage for some purticular process.

Thanks in advance
Anoop
9 REPLIES
Venkatesh BL
Honored Contributor

Re: Memory utilization for process

use ps or glance.
Kranti Mahmud
Honored Contributor

Re: Memory utilization for process

Suraj K Sankari
Honored Contributor

Re: Memory utilization for process

Hi,
Best option is using glance you can see the utilization of a process.
below switch you can use with glance
m :- Memory detail
s :- Single process detail
f :- Single process open file detail
I :- Per-thread resource utilization
L :- Per-process system call utilization
M :- Single process memory regions detail
W :- Single process wait states detail

Suraj
Basheer_2
Trusted Contributor

Re: Memory utilization for process

you can
top
glance
gpm
sar
Basheer_2
Trusted Contributor

Re: Memory utilization for process

Oops
and vmstat
Anoop R Nath
Advisor

Re: Memory utilization for process

Dear all,

Thanks for your reply.But I want in percentage format (%) for each process. Glance will give you only total information.
In Solaris "ps -aux" is using for that.

Thanks and regrds
Anoop
Sajjad Sahir
Honored Contributor

Re: Memory utilization for process


Dear ANoop

top is the best command to check

u can use glance tools also

thanks and regards

Sajjad Sahir
smatador
Honored Contributor

Re: Memory utilization for process

Hi Anoop,

What you want is the ps UNIX95
do
# man ps
and look at options in UNIX standard synopsis
for example you could use it like this
UNIX95= ps -e -o "user,vsz,pcpu,args"| awk 'NR>1'| sort -kn2

Hope it helps
Steven E. Protter
Exalted Contributor

Re: Memory utilization for process

Shalom Anoop,

While not strictly what you are looking for:

http://www.hpux.ws/?p=8

The leak detector is a good example of ps code and it works on Linux, HP-UX and Solaris.

It might be helpful.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com