清漆处理的内存限制

问题描述 投票:0回答:1

在Varnishv4.1上,当我使用ram作为缓存的后端时,当需要它时一段时间后,服务器的内存开始一点一点地填满,完全填满后,服务器崩溃并再次开始在ram中缓存

我在systemd服务文件中为varnish.service分配以下变量但仍然会执行其以前的行为,并再次崩溃:

LimitMEMLOCK=14336
MemoryLimit=13G
MemoryHigh=13G
MemoryMax=13G

我如何限制和指定不能超出的特殊内存?

#Version used:
Varnishv4.1
#Operating System and version:
Ubuntu16.04
#Source of binary packages used (if any)
Installed from official ubuntu packages
caching limit varnish
1个回答
0
投票

您将必须同时限制malloc和Transient。即作为启动参数-s malloc,3GB s Transient,1GB

通常分配给Varnish的RAM不应超过系统上可用总RAM的80%

© www.soinside.com 2019 - 2024. All rights reserved.