Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Sep 2003 13:48:53 -0400
From:      Jesse Guardiani <jesse@wingnet.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: process memory peak recording
Message-ID:  <bjaia5$5da$1@sea.gmane.org>
References:  <bj5rdn$3r5$5@sea.gmane.org> <44fzjb72wk.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert wrote:

> Jesse Guardiani <jesse@wingnet.net> writes:
> 
>> During a recent programming/installation
>> project, I found myself wanting to know
>> the peak memory usage of a given command/process.
>> 
>> Is there any way to gather this information
>> without recompiling an application with a
>> sleep or wait statement at the (assumed)
>> point of peak memory usage and then looking
>> at the process with 'ps'?
> 
> Running under a debugger is one typical way of doing this.
> For strictly malloc(3)'d memory, a memory profiler will be an easier
> option.  If I remember correctly, there is a choice of them in the
> ports system.

These are generally things you have to compile into your
applications, right? I'm specifically dealing with Perl
and Python scripts that I did not write.

However, I do some C programming from time to time, and
learning how to use a memory profiler/leak detector is
extremely appealing to me.

Which is your favorite?
Which works the best?


Thanks!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bjaia5$5da$1>