Varnish memory consumption grows infinitely

G.Bertels at G.Bertels at
Fri Mar 19 09:03:03 UTC 2021

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.

The Varnish is started with the following parameters:

-P /var/run/ \
-f /etc/varnish/default.vcl \
-a :6081 -T \
-S /etc/varnish/secret \
-s Transient=malloc,8G \
-s malloc,48G \
-p http_req_hdr_len=16k \
-p timeout_idle=10 \
-p workspace_client=256k \
-p workspace_backend=256k

The virtual memory and RAM consumption keeps growing and I have to restart the process every few days.
My search on the internet shows some results that a few also have the problem, but no solution.
It looks like RedHat does not use jemalloc (

ldd /usr/sbin/varnishd (0x00007ffe365ea000) => /lib64/ (0x00007ff6869f2000) => /lib64/ (0x00007ff6867ee000) => /lib64/ (0x00007ff6865e6000) => /lib64/ (0x00007ff686264000) => /lib64/ (0x00007ff686044000) => /lib64/ (0x00007ff685c81000)
/lib64/ (0x00007ff686f99000)

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.



circ IT GmbH & Co KG • 40549 Düsseldorf
Sitz Düsseldorf • Amtsgericht Düsseldorf HRA 19974
Persönlich haftender Gesellschafter: circ IT Verwaltungs-GmbH (AG Düsseldorf HRB 58609)
Geschäftsführer: Michael Staade
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list