Hi Ali,<div><br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 8:57 AM, Your Friend <span dir="ltr"><<a href="mailto:parsimail2001@yahoo.se">parsimail2001@yahoo.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:12pt"><div>I'm using malloc for Varnish. I'm using a php application which runs deamons for live streaming (text-streaming) and has a big issue with memory, also memory leak so I desided to use echo 1 > /proc/sys/vm/drop_caches.</div>
</div></div></blockquote><div><br></div><div>This has nothing to do with the memory leak in your program. This command flushes out the internal caching in the OS kernel. It will only screw up your IO performance.</div><div>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:12pt">
<div>Here comes the problem! I think this command resets varnish's cache! (not 100% sure.)</div></div></div></blockquote><div><br></div><div>If you are using -s file I think the command might flush out parts of Varnish cache as well. If you are using -s malloc then it won't have any effect.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:12pt">
<div>How can I stop memory leaking without resetting Varnish cache? (my php application is the latest version and I can't replace it with an other application)</div></div></div></blockquote><div><br></div><div>Restart the PHP application or fix the leak.</div>
<div><br></div></div><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer, CEO<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br>
<i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>
</div>