<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black;mso-fareast-language:DE">Sorry, i mean
</span><span style="color:black;mso-fareast-language:DE">Varnish 6.0.6</span><span style="font-size:11.0pt;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black;mso-fareast-language:DE"> <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">Von: </span></b><span style="color:black">varnish-misc <varnish-misc-bounces+g.bertels=circit.de@varnish-cache.org> im Auftrag von "Bertels, Günter" <G.Bertels@circit.de><br>
<b>Datum: </b>Freitag, 19. März 2021 um 10:05<br>
<b>An: </b>"varnish-misc@varnish-cache.org" <varnish-misc@varnish-cache.org><br>
<b>Betreff: </b>Varnish memory consumption grows infinitely</span><span style="color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">we are using Varnish 6.0.9 with Red Hat Enterprise Linux 8.3 and I notice that the Varnish consumes more memory than allocated to it.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">The Varnish is started with the following parameters:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">ExecStart=/usr/sbin/varnish\ </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-P /var/run/varnish.pid \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-f /etc/varnish/default.vcl \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-a :6081 -T 127.0.0.1:6082 \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-S /etc/varnish/secret \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-s Transient=malloc,8G \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-s malloc,48G \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-p http_req_hdr_len=16k \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-p timeout_idle=10 \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-p workspace_client=256k \</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">-p workspace_backend=256k</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">The virtual memory and RAM consumption keeps growing and I have to restart the process every few days.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">My search on the internet shows some results that a few also have the problem, but no solution.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">It looks like RedHat does not use jemalloc (https://bugzilla.redhat.com/show_bug.cgi?id=1656034)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">ldd /usr/sbin/varnishd</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">linux-vdso.so.1 (0x00007ffe365ea000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">libpcre.so.1 => /lib64/libpcre.so.1 (0x00007ff6869f2000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">libdl.so.2 => /lib64/libdl.so.2 (0x00007ff6867ee000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">librt.so.1 => /lib64/librt.so.1 (0x00007ff6865e6000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">libm.so.6 => /lib64/libm.so.6 (0x00007ff686264000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff686044000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">libc.so.6 => /lib64/libc.so.6 (0x00007ff685c81000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">/lib64/ld-linux-x86-64.so.2 (0x00007ff686f99000)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I am at a loss as to how to proceed. Because restarting the Varnish every few days can't be the solution and I hope there is a way to solve the problem.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Günter</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:DE"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt;mso-fareast-language:DE">
<hr size="0" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE"><br>
circ IT GmbH & Co KG • 40549 Düsseldorf<br>
Sitz Düsseldorf • Amtsgericht Düsseldorf HRA 19974<br>
Persönlich haftender Gesellschafter: circ IT Verwaltungs-GmbH (AG Düsseldorf HRB 58609)<br>
Geschäftsführer: Michael Staade<br>
<br>
</span><span style="font-size:11.0pt;mso-fareast-language:DE"><o:p></o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
circ IT GmbH & Co KG • 40549 Düsseldorf<br>
Sitz Düsseldorf • Amtsgericht Düsseldorf HRA 19974<br>
Persönlich haftender Gesellschafter: circ IT Verwaltungs-GmbH (AG Düsseldorf HRB 58609)<br>
Geschäftsführer: Michael Staade<br>
</font>
</body>
</html>