Operating System - HP-UX
1833346 Members
4046 Online
110051 Solutions
New Discussion

memeory usage of a process

 
Amith_2
Frequent Advisor

memeory usage of a process

Hello,

I need to find out the memory usage of a background process in HP-11 server. Could you please tell me a method to find the memory usage of a process.

Regards
Amith
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: memeory usage of a process

HI Amhit,

If you would like a quick list of your memory usage, you could use

# UNIX95= ps -e -o ruser,vsz,pid,args | sort -rnk2

Best regards,
Robert-Jan
Amith_2
Frequent Advisor

Re: memeory usage of a process

Hello Robert,

The output of the command mentioned by you is

amith 692 7193 /vol1/216-569a/bmpc/bin/dmctl.native

where dmctl.native is my process and 7193 is the process id.
Whereas below mentioned is the same process started by another user
meenam 1052 23113 /lantst/testing/720-720a/bmpc/bin/dmctl.native
where process id is 23113.
In this which is the memory usage of the process and why the difference in the two cases.

Arunvijai_4
Honored Contributor

Re: memeory usage of a process

Hi Amith,

You can use this command as well,

UNIX95=1 ps -ef -o vsz= -o pid= -o comm= |sort -rnk1 | awk 'BEGIN{printf "Memory PID Process\n";}{ printf "%-3.2f MB %-5d %-15s\n",$1/1024,$2,$3; }'

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sebastian C
New Member

Re: memeory usage of a process

Have you tried with glance?
It can track memory usage for a process in particular.

Regards,
Sebastian
Amith_2
Frequent Advisor

Re: memeory usage of a process

I am able to get the memory statistics of a process from the glance.

What i need is to specify my client what is the memory usage of a process. This is for him to configure the program based on his RAM features. So how can i find that.
Amith_2
Frequent Advisor

Re: memeory usage of a process

I am able to get the memory statistics of a process from the glance.

What i need is to specify my client what is the memory usage of a process. This is for him to configure the program based on his RAM features. So how can i find that.
Will the TSS/RSS value be the total memory usage of the program.