how to check whether varnish use memory for cache

Travis Crowder travis.crowder at spechal.com
Thu Feb 16 04:31:01 CET 2012


You can issue a ps auwx | grep varnish and look at the line for the process:

/usr/sbin/varnishd -P /var/run/varnish.pid -a :80 -f 
/etc/varnish/default.vcl -T XX.XX.XX.XX:XX -t 120 -w 100,4000,120 -u 
varnish -g varnish -S /etc/varnish/secret -s malloc,2G

This shows Varnish is using malloc and is allocated 2G of memory.

You can also issue top and find the varnishd entry:

23193 varnish   15   0 4064m 1.5g  81m S  2.0 15.8  70:19.87 varnishd

This shows we are using 1.5G of resident memory for our Varnish instance.

HTH,
Travis

On 2/15/2012 9:24 PM, Jewel Nuruddin wrote:
> Hello
> I am using malloc for varnish.
> How can I check malloc is working and also how can I check whether my 
> cached is using this malloc?
> Thanks
> Jewel
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120215/5459d348/attachment.html>


More information about the varnish-misc mailing list