<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:12pt"><div><span>Great tips! I can use it in some parts of my PHP application.</span></div><div><span><br></span></div><div><span>Thanks for the tip,<br></span></div><div><span><br></span></div><div><span>Best regards,<br></span></div><div><span>Ali<br></span></div><div><br></div><div style='font-size: 12pt; font-family: "verdana", "helvetica", sans-serif'><div style='font-size: 12pt; font-family: "times new roman", "new york", "times", serif'><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;"></span></b></font><br><div id="yiv195449635">







<div class="yiv195449635p1">On Tue, Sep 20, 2011 at 9:09 AM, wrote:</div><div class="yiv195449635gmail_quote"><blockquote class="yiv195449635gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style='color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: "verdana", "helvetica", sans-serif'><div>I'll try to take a closer look into my PHP application to fix the memory leak.</div></div></div>
</blockquote></div><br><div><div class="yiv195449635p1">One tip for PHP memory leak debugging is to to put:</div><div class="yiv195449635p2">echo memory_get_usage();</div><div class="yiv195449635p2">at the end of each iteration of your loop.  We find that objects sometimes are responsible for an increase in memory usage, and that you need to do $obj = null; unset($obj); at the end of each iteration to ensure they're properly disposed of, and thus ensure memory isn't leaked.</div>
</div><div>Good luck</div><div><br></div><div><br></div><div>Rob</div><div><br></div><div>(Apologies for being slightly off topic for Varnish-misc)</div>
</div><br><br></div></div></div></body></html>