Varnish Cache Runaway RAM Usage!

John Kormanec jpkorma at yahoo.com
Tue Sep 7 15:12:43 UTC 2021


An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20210907/c8184fb1/attachment-0001.html>
-------------- next part --------------
[Unit]
Description=Varnish Cache, a high-performance HTTP accelerator
After=network-online.target

[Service]
Type=forking
KillMode=process

# Maximum number of open files (for ulimit -n)
LimitNOFILE=131072

# Locked shared memory - should suffice to lock the shared memory log
# (varnishd -l argument)
# Default log size is 80MB vsl + 1M vsm + header -> 82MB
# unit is bytes
LimitMEMLOCK=85983232

# Enable this to avoid "fork failed" on reload.
TasksMax=infinity

# Maximum size of the corefile.
LimitCORE=infinity

# Configure Varnish listening port, default "vcl" file location, memory allocation, etc:
ExecStart=/usr/sbin/varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,14G -s Transient=malloc,512M -T 0.0.0.0:2000
ExecReload=/usr/sbin/varnishreload

[Install]
WantedBy=multi-user.target


More information about the varnish-misc mailing list