Re: trick/tips for finding memory leaks

2007-11-26 Thread ed
On Sun, 25 Nov 2007 20:16:00 -0500
Sam Carleton [EMAIL PROTECTED] wrote:

 Thanks to the performance tools of my OS I have confirmed that
 somewhere in my Apache module there is a memory leak.  Are there any
 tips or tricks out there for find memory leaks in an Apache module?

Run inside gdb as a single process, not forking any background
processes, -X i think. Then step through your code to see where the
leak is.

Generally speaking, if you're using apr routines then they should
handle the memory resources for you, there should be little need for
allocating on the heap.

-- 
The 28.8 frame relay to the Netapp is smelling funky because of All
your base are belong to us. Sun Microsystems is havin' a smoke.
:: http://www.s5h.net/ :: http://www.s5h.net/gpg.html


signature.asc
Description: PGP signature


Re: trick/tips for finding memory leaks

2007-11-26 Thread Sam Carleton
On 11/26/07, ed [EMAIL PROTECTED] wrote:

 Generally speaking, if you're using apr routines then they should
 handle the memory resources for you, there should be little need for
 allocating on the heap.