Summary: Performance monitoring of memory leak, proctool

Ju-Lien Lim (julienlim@rocketmail.com)
Thu, 13 Nov 1997 20:50:33 -0800 (PST)

My thanks to the following people for their
recommendations:

Jean Philippe Le Roy [jean-philippe.leroy@st.com]
Stuart Little [Stuart.Little@dpcs-sw.co.uk]
Kevin Inscoe [kevin.inscoe@cbis.com]
Kevin Sheehan [Kevin.Sheehan@uniq.com.au]

Original question: I'm trying to track down memory
leaks in my processes, and I read that
the way to do so is to look at the SZ field when you
do a "ps -elf". Is there any other way? Also, can
anyone tell me what the equivalent fieldname for the
SZ field would be using proctool?

Recommendations/Solutions:

Try Purity - a commercial tool for stuff you can
compile yourself from www.pureatria.com, but that
costs..

I would use /usr/ucb/ps -auxw. /usr/ucb/ps show SZ as
total process size and RSS as resident set size
(core) which is more acurate then what /usr/bin/ps
shows. It shows SZ including swap allocation as well
which is misleading.

Size?? Even better - you can take a look at the
memory map. The heap is where malloc() gets its
memory. Also, GNU malloc has a trace faciity. You
can use that to see mismatches.

===
Ju
julienlim@rocketmail.com

__________________________________________________________________
Sent by Yahoo! Mail. Get your free e-mail at http://mail.yahoo.com