<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">An update on the original issue, which is Varnish eating up RAM, and the Ubuntu 24.04 LTS version not having jemalloc to avoid that.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I ended up purging Varnish, and installing the LTS version (6.0) from an external repo.</div><div class="gmail_default" style="font-size:small">This version is linked to jemalloc.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><a href="https://www.varnish-software.com/developers/tutorials/installing-varnish-ubuntu/">This guide</a> outlines the process, but works for Ubuntu 22.04 LTS and older only.</div><div class="gmail_default" style="font-size:small">For 24.04 LTS, the format for apt sources have changed, so I ended up with this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">cat &gt; /etc/apt/sources.list.d/varnish60lts.sources &lt;&lt;EOT</span></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace">Types: deb
<br>URIs: <a href="https://packagecloud.io/varnishcache/varnish60lts/ubuntu">https://packagecloud.io/varnishcache/varnish60lts/ubuntu</a>
<br>Suites: noble
<br>Components: main
<br>Signed-By: /etc/apt/keyrings/varnishcache_varnish60lts-archive-keyring.gpg<br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace">EOT</span></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It is working as it should for now, but leaks take a while to show up.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Dec 1, 2025 at 1:01\u202fPM Khalid Baheyeldin &lt;<a href="mailto:kb@2bits.com">kb@2bits.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div style="font-size:small">For a client, I use Varnish on the server. <br>We switched servers, and distro version (to 24.04 LTS), recenlty.<br><br>Varnish is supposed to use libjemalloc for allocating memory for its cache, and other stuff.<br><br>If you lookup at the Ubuntu repo for 24.04 (noble), you will see that libjemalloc is one of the dependencies, per here: <br><br><a href="https://packages.ubuntu.com/noble/varnish" target="_blank">https://packages.ubuntu.com/noble/varnish</a><br><br>But if you use apt show, you don&#39;t see libjemalloc at all:<br><br><span style="font-family:monospace">apt show varnish</span></div><div style="font-size:small"><span style="font-family:monospace"><br></span></div><div style="font-size:small"><span style="font-family:monospace">Package: varnish<br>Version: 7.1.1-1.1ubuntu1<br>Section: universe/web<br>...<br>Pre-Depends: init-system-helpers (&gt;= 1.54~)<br>Depends: <br>  libc6 (&gt;= 2.34), <br>  libedit2 (&gt;= 2.11-20080614-0), <br>  libncursesw6 (&gt;= 6), <br>  libpcre2-8-0 (&gt;= 10.32), <br>  libtinfo6 (&gt;= 6), <br>  libvarnishapi3 (&gt;= 7.1.0), <br>  adduser, <br>  gcc, <br>  libc6-dev | libc6.1-dev | libc-dev, lsb-base</span><br><br>And ldd does not show linkage to libjemalloc:<br><br><span style="font-family:monospace">sudo ldd `which varnishd`<br>  linux-vdso.so.1 (0x00007fff581d2000)<br>  libpcre2-8.so.0 =&gt; /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x000077c219ce4000)<br>  libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x000077c219bfb000)<br>  libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x000077c219800000)<br>  /lib64/ld-linux-x86-64.so.2 (0x000077c219ef8000)</span><br><br>So what is going on? I am missing something here.<br></div><div style="font-size:small"><br></div><div style="font-size:small">Can anyone enlighten us on what is going on?</div><br clear="all"></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Khalid M. Baheyeldi<span class="gmail_default" style="font-size:small">n</span></div></div></blockquote></div></div>