trick/tips for finding memory leaks

2007-11-25 Thread Sam Carleton
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?

Sam
-- 
The contents of this e-mail are intended for the named addressee only.
It contains information that may be confidential. Unless you are the
named addressee or an authorized designee, you may not copy or use it,
or disclose it to anyone else. If you received it in error please
notify us immediately and then destroy it.


performance vs development time

2007-11-25 Thread Sam Carleton
With this memory leak in my simple Apache module, I am considering
rewriting the whole module.  Right now there are two files small files
that the module reads every time.  One is a small (less then a 1K)
configuration file and the other is a small (1K ~20K) xml file.  In
the rewrite, I am considering caching the data in these files and
reading them only if they are changed.  The question though is:
Considering how small these files are, will the performance gains be
worth the extra development time?  Another option would be to switch
from using libxml2 to expat for the XML parsing.

Oh, what type of load is the server under?  The server is driving a
kiosk system where there are normally a hand full of kiosk but there
could be as many as 100 under very heavy use.

Sam