Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to findout the memory used by a process in HPUX

503 views
Skip to first unread message

zhu chao

unread,
Nov 8, 2003, 7:12:02 AM11/8/03
to
In Solaris, we can use pmap to find out memory utilization of a process, in
AIX, we use svmon -p to find out.

What is the tool to do the same thing in HPUX?

Thanks.
Zhu Chao


Sarah Conor

unread,
Nov 8, 2003, 10:44:32 AM11/8/03
to
glance
kmeminfo (freeware)
dmon (freeware)
top


zhu chao

unread,
Nov 10, 2003, 9:17:58 PM11/10/03
to
Hi,
top won't help as oracle use shared memory and it has big code size.
In solaris , I use pmap to decode sections of different memory usage
like, can dmon/glance etc do the same thing?
Sorry I cannot find a copy of dmon to download for test, can you give me
a URL?Thanks.

oracle[oraprd]@srv16:/ora/92> pmap 1035510355: oracleoraprd
(LOCAL=NO)0000000100000000 52360K read/exec
/ora/92/bin/oracle0000000103420000 1040K read/write/exec
/ora/92/bin/oracle0000000103524000 528K read/write/exec [
heap ]0000000380000000 364544K read/write/exec/shared [ ism
shmid=0x3e8 ]FFFFFFFF7AC00000 8K read/write [
anon ]FFFFFFFF7AC10000 8K read/write [ anon ]FFFFFFFF7AC50000
192K read/write [ anon ]FFFFFFFF7CE00000 24K read/exec
/usr/lib/sparcv9/nss_files.so.1FFFFFFFF7CF06000 8K read/write/exec
/usr/lib/sparcv9/nss_files.so.1FFFFFFFF7D000000 8K read/write/exec
[ anon ]FFFFFFFF7D100000 16K read/exec
/usr/platform/sun4u/lib/sparcv9/libc_psr.so.1FFFFFFFF7D200000 16K
read/exec /usr/lib/sparcv9/libmp.so.2FFFFFFFF7D304000 8K
read/write/exec /usr/lib/sparcv9/libmp.so.2FFFFFFFF7D400000 88K
read/exec /usr/lib/sparcv9/libm.so.1FFFFFFFF7D516000 8K
read/write/exec /usr/lib/sparcv9/libm.so.1FFFFFFFF7D600000 8K
read/exec /usr/lib/sparcv9/libkstat.so.1FFFFFFFF7D702000 8K
read/write/exec /usr/lib/sparcv9/libkstat.so.1FFFFFFFF7D800000 8K
read/write/exec [ anon ]FFFFFFFF7D900000 32K read/exec
/usr/lib/sparcv9/librt.so.1FFFFFFFF7DA08000 8K read/write/exec
/usr/lib/sparcv9/librt.so.1FFFFFFFF7DB00000 32K read/exec
/usr/lib/sparcv9/libaio.so.1FFFFFFFF7DC08000 8K read/write/exec
/usr/lib/sparcv9/libaio.so.1FFFFFFFF7DD00000 712K read/exec
/usr/lib/sparcv9/libc.so.1FFFFFFFF7DEB2000 56K read/write/exec
/usr/lib/sparcv9/libc.so.1FFFFFFFF7DEC0000 8K read/write/exec
/usr/lib/sparcv9/libc.so.1FFFFFFFF7E000000 32K read/exec
/usr/lib/sparcv9/libgen.so.1FFFFFFFF7E108000 8K read/write/exec
/usr/lib/sparcv9/libgen.so.1FFFFFFFF7E200000 56K read/exec
/usr/lib/sparcv9/libsocket.so.1FFFFFFFF7E30E000 16K read/write/exec
/usr/lib/sparcv9/libsocket.so.1FFFFFFFF7E400000 5264K read/exec
/ora/92/lib/libjox9.soFFFFFFFF7EA22000 376K read/write/exec
/ora/92/lib/libjox9.soFFFFFFFF7EA80000 8K read/write/exec
/ora/92/lib/libjox9.soFFFFFFFF7EB00000 8K read/write/exec [
anon ]FFFFFFFF7EC00000 664K read/exec
/usr/lib/sparcv9/libnsl.so.1FFFFFFFF7EDA6000 56K read/write/exec
/usr/lib/sparcv9/libnsl.so.1FFFFFFFF7EDB4000 40K read/write/exec
/usr/lib/sparcv9/libnsl.so.1FFFFFFFF7EE00000 32K read/exec
/ora/92/lib/libskgxn9.soFFFFFFFF7EF06000 8K read/write/exec
/ora/92/lib/libskgxn9.soFFFFFFFF7F000000 8K read/exec
/ora/92/lib/libskgxp9.soFFFFFFFF7F100000 8K read/write/exec
/ora/92/lib/libskgxp9.soFFFFFFFF7F200000 8K read/write/exec [
anon ]FFFFFFFF7F300000 8K read/exec
/ora/92/lib/libodmd9.soFFFFFFFF7F400000 8K read/write/exec
/ora/92/lib/libodmd9.soFFFFFFFF7F500000 8K read/exec
/usr/lib/sparcv9/libdl.so.1FFFFFFFF7F600000 136K read/exec
/usr/lib/sparcv9/ld.so.1FFFFFFFF7F720000 16K read/write/exec
/usr/lib/sparcv9/ld.so.1FFFFFFFF7F724000 8K read/write/exec
/usr/lib/sparcv9/ld.so.1FFFFFFFF7FFE2000 120K read/write [
stack ] total 426632K
"Sarah Conor" <no...@none.com> 写入邮件
news:3fad0f67$0$2013$ba62...@reader1.news.skynet.be...

Sarah Conor

unread,
Nov 11, 2003, 1:13:46 PM11/11/03
to

Hello,

> Sorry I cannot find a copy of dmon to download for test, can you give
me
You can find dmon at http://hpux.connect.org.uk/ (dmon is rather old and
it's not the best choice)

I advice to use kmeminfo and/or glance ('gpm' to start it). There is a trial
version valid 2 months of Glance on HP Applications CDs.
Glance is a nice tool and you can see all memory details.
You can have also a recorder of memory usage and a lot of others metrics
with glance+ pak (=glance + OPPAgent)
Try also OVPM (perfview) to display recorded metric data..

Alain Honorez. (REMOVE ZZZalain...@belgacom.beZZZ)


Extract from ITRC->"maintenance and support for HP products" ->knowledge
trees->HP-UX Software Recovery Handbook ->"Chapter 13 - Software Development
" (must read all chapters !) (may be you need first to register).

kmeminfo
kmeminfo gives information about memory usage of either the complete system
or a process.

The latter can be very helpful when analysing memory related problems
because it shows the

usage of the process address space. Here is a typical output for the process
memory:

$ kmeminfo -pid 3523

:

Process's memory regions (in pages):

Process "java", pid 3523, 32bit, R_EXEC_MAGIC:

type space vaddr ref virt phys swap

TEXT 0xd22f400.0x0000000000001000 1 5 4 1

DATA 0xd22f400.0x0000000000006000 1 2042 2041 2048

MMAP 0xd22f400.0x00000000679ff000 1 513 257 515

MMAP 0xd22f400.0x0000000067c00000 1 24576 1281 1344

MMAP 0xd22f400.0x000000006dc00000 1 8192 86 107

MMAP 0xd22f400.0x000000006fcbd000 1 33 18 34

MMAP 0xd22f400.0x000000006fcde000 1 33 18 34

:

MMAP 0xd22f400.0x000000006ffe6000 1 4 3 5

MMAP 0xd22f400.0x000000006ffea000 1 2 2 3

SHLDATA 0xd22f400.0x000000006ffec000 1 4 4 5

STACK 0xd22f400.0x000000006fff0000 1 528 272 530

SHLTEXT 0x7082400.0x00000000c0004000 109 3 3 1

SHLTEXT 0x7082400.0x00000000c0010000 117 33 33 1

:

kmeminfo prints one line for each memory region. Most interesting are
columns 1, 3 and 5.

Column 1 tells what the region is used for. The abbreviations are
self-explaining. Column 3

lists the start address and column 5 its size in pages (one page = 4k).

Detailed information and downloads are available at

. http://oceanie.grenoble.hp.com/georges/kmeminfo.html (link do not work ->
ask to HP).

This tool is not officially available but can be sent out to customers on
request.

Gary Jahrig

unread,
Nov 14, 2003, 5:55:30 PM11/14/03
to
Try ps -elf

There is a sz that is close. The man page on ps explains it.


"zhu chao" <chao...@vip.163.com> wrote in message
news:boph1d$1r6n$1...@mail.cn99.com...

0 new messages