Hi Nitin,<br><br><div class="gmail_quote">On Thu, Sep 15, 2011 at 2:46 PM, Nitin Srivastava <span dir="ltr"><<a href="mailto:nsrivastava2@gmail.com">nsrivastava2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi, <br><br>I am executing this command -<br><div><b>/usr/sbin/varnishd -f /etc/<span>varnish</span>/default.vcl -s malloc,3G -T <a href="http://127.0.0.1:2000/" target="_blank">127.0.0.1:2000</a></b></div><br>which I believe specifies Varnish to use 3GB of RAM </blockquote>

<div><br></div><div>Not quite. It specifies that Varnish should use 3GB of memory for storing objects. In addition there are certain data structures that are allocated in memory. Those are typically 1kB per object.</div>
<div>
<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">only while my Varnish going beyond it and taking some 9GB of RAM<br></blockquote><div><br></div>

<div>Varnish 3.0.0 can leak memory in certain conditions. You failed to specify what Varnish version you're running, but if you're on 3.0 I would suggest an upgrade.</div><div><br></div><div><br></div><div>Per.</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>