<html 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)">
<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:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The Varnish is started with the following parameters:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ExecStart=/usr/sbin/varnish\ <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-P /var/run/varnish.pid \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-f /etc/varnish/default.vcl \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-a :6081 -T 127.0.0.1:6082 \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-S /etc/varnish/secret \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-s Transient=malloc,8G \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-s malloc,48G \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-p http_req_hdr_len=16k \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-p timeout_idle=10 \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-p workspace_client=256k \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-p workspace_backend=256k<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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.<o:p></o:p></span></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.<o:p></o:p></span></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)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ldd /usr/sbin/varnishd<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">linux-vdso.so.1 (0x00007ffe365ea000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">libpcre.so.1 => /lib64/libpcre.so.1 (0x00007ff6869f2000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">libdl.so.2 => /lib64/libdl.so.2 (0x00007ff6867ee000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">librt.so.1 => /lib64/librt.so.1 (0x00007ff6865e6000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">libm.so.6 => /lib64/libm.so.6 (0x00007ff686264000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff686044000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">libc.so.6 => /lib64/libc.so.6 (0x00007ff685c81000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/lib64/ld-linux-x86-64.so.2 (0x00007ff686f99000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Günter<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>