title: Searching for memory leaks in Apache httpd and modules
body: <p>What is the best way for finding memory leaks in Apache httpd and httpd modules?</p>
  
  <p>Are there any howtos?</p>
  
  <p>I'v tried valgrind a little, but few obstacles appeared:</p>
  
  <ol>
  <li>Valgrind expects for binary to exit normally. I have managed to do that with MaxRequestsPerChild and -X parameter.</li>
  <li>Valgrind reports about lots of stuff, probably connected with apr pools, but nothing useful.</li>
  </ol>
  
  <p>OS: Linux</p>
  
  <p>P.S.:</p>
  
  <p>Valgrind command: <code>$ valgrind --leak-check=full --leak-resolution=med --log-file=/tmp/valgrind.log ./bin/httpd -X</code></p>
  
  <p>Valgrind output example: <a href="http://paste-it.net/public/x5b6e8b/" rel="noreferrer">http://paste-it.net/public/x5b6e8b/</a></p>