I experienced this same issue under x64. Varnish seemed great but once I put some real traffic on it under x64 the memory leaks began and it would eventually crash/restart.<br><br>Ended up putting Varnish on the back burner and have been waiting for it to stabilize before even trying to present it to upper management again.<br>
<br>Varnish has great potential but until it can run stable under x64 it's got a long fight ahead of itself.<br><br>(I do want to note that my comments are based mainly on varnish 1 and not varnish 2.0)<br><br>--cripy<br>
<br><div class="gmail_quote">On Wed, Oct 21, 2009 at 8:22 AM, Henry Paulissen <span dir="ltr"><<a href="mailto:h.paulissen@qbell.nl">h.paulissen@qbell.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
We encounter the same problem.<br>
<br>
Its seems to occur only on x64 platforms.<br>
We decided to take a different approach and installed vmware to the machine.<br>
Next we did a setup of 6 guests with x32 PAE software.<br>
<br>
No strange memory leaks occurred since then at the price of small storage (3.5G max) and limited worker threads (256 max).<br>
<br>
Opened a ticket for the problem, but the wont listen until I buy a support contract (á €8K).<br>
Seems they don’t want to know there is some kind of memory issue in their software.<br>
<br>
Anyway...<br>
Varnish is running stable now with some few tricks.<br>
<br>
<br>
Regards,<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:varnish-misc-bounces@projects.linpro.no">varnish-misc-bounces@projects.linpro.no</a> [mailto:<a href="mailto:varnish-misc-bounces@projects.linpro.no">varnish-misc-bounces@projects.linpro.no</a>] On Behalf Of Kristian Lyngstol<br>
Sent: woensdag 21 oktober 2009 13:34<br>
To: Roi Avinoam<br>
Cc: <a href="mailto:varnish-misc@projects.linpro.no">varnish-misc@projects.linpro.no</a><br>
Subject: Re: Varnish virtual memory usage<br>
<br>
On Mon, Sep 21, 2009 at 02:55:07PM +0300, Roi Avinoam wrote:<br>
> At Metacafe we're testing the integration with Varnish, and I was<br>
> tasked with benchmarking our Varnish setup. I intentionally<br>
> over-flooded the server with requests, in an attempt to see how the<br>
> system will behave under extensive traffic. Surprisingly, the server<br>
> ran out of swap and crashed.<br>
<br>
That seems mighty strange. What sort of tests did you do?<br>
<br>
> In out configuration, "-s file,/var/lib/varnish/varnish_storage.bin,1G".<br>
> Does it mean Varnish shouldn't use more than 1GB of the virtual memory?<br>
> Is there any other way to limit the memory/storage usage?<br>
<br>
If you are using -s file and you have 4GB of memory, you are telling Varnish to create a _file_ of 1GB, and it's up to the kernel what it keeps in memory or not. If you actually run out of memory with this setup, you've either hit a bug (need more details first), or you're doing something strange like having the mmaped file (/var/lib/varnish/) in tmpfs with a sizelimit less than 1GB or something along those lines. But I need more details to say anything for certain.<br>
<br>
--<br>
Kristian Lyngstøl<br>
Redpill Linpro AS<br>
Tlf: +47 21544179<br>
Mob: +47 99014497<br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@projects.linpro.no">varnish-misc@projects.linpro.no</a><br>
<a href="http://projects.linpro.no/mailman/listinfo/varnish-misc" target="_blank">http://projects.linpro.no/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br>