SV: varnish cach question
parsimail2001 at yahoo.se
Tue Sep 20 10:09:20 CEST 2011
" It will only screw up your IO performance "
Thanks for mentioning it, I never noticed it because I was more worried about the memory usage and using
echo 1 > /proc/sys/vm/drop_caches,
echo 1 > /proc/sys/vm/drop_caches ,
echo 3 > /proc/sys/vm/drop_caches
always released 30-40 MB on my server, but it's not worth it if it screws up IO performance.
I'll try to take a closer look into my PHP application to fix the memory leak.
Thank you for taking time to answer to my question.
On Tue, Sep 20, 2011 at 8:57 AM, wrote:
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.
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.
Here comes the problem! I think this command resets varnish's cache! (not 100% sure.)
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.
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)
Restart the PHP application or fix the leak.
Per Buer, CEO
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
Varnish makes websites fly!
Whitepapers | Video | Twitter
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc