Operating System - HP-UX
1825793 Members
2894 Online
109687 Solutions
New Discussion

Re: How to see all each process memory utilization

 
cstsaia
New Member

How to see all each process memory utilization

Dear:
How to know each process which occupied how much memory utilization on HP-UX system ?
I need to know every process's memory utilization to separate each AP's memory utilization. thanks a lot !
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: How to see all each process memory utilization

Simply as,

# UNIX95= ps -ef -o pid,comm,sz,vsz

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: How to see all each process memory utilization

Hello,

You can use UNIX95 variable,

UNIX95= ps -ef -o sz,vsz,pid,comm

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: How to see all each process memory utilization

Related with your requirement in search more:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=956772

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: How to see all each process memory utilization

Hello,

Check this thread as well,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1008114

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Carlos Roberto Schimidt
Regular Advisor

Re: How to see all each process memory utilization

Hi,

Is possible use glance for separate memory consume for your aplications.
Is necessary configure file /var/opt/perf/parm.

See some samples in file /opt/perf/examples/ovpaconfig/parm_apps
Yogeeraj_1
Honored Contributor

Re: How to see all each process memory utilization

hi,

You can also use Glance to further drill down on the process.

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Steve Steel
Honored Contributor

Re: How to see all each process memory utilization

Hi


There are tools here

ftp://eh:spear9@hprc.external.hp.com/memory.htm

For example:
Look at breakdown of memory usage, per process:

# ./procsize -fnc | more
pid Comm UAREA TEXT DATA STACK SHMEM IO MMAP Total
2916 getty v 4 5 6 4 0 0 349 369
2287 prm3d v 68 6 671 513 0 0 37212 38471
.
.
.



NOTE: numbers in the output of procsize are the number of 4K pages. So, mulitply by 4096 to get a byte count.

TRICK: Here's the command to use to sort by the 11th column (total memory usage)


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
xertusit
Trusted Contributor

Re: How to see all each process memory utilization

you can run
ps -efl | more

then you get the sizex4mb.

Regards,
massimo