[squid-users] Squid - Your cache is running out of filedescriptors

Stuart Henderson stu.lists at spacehopper.org
Mon Jan 29 12:18:09 UTC 2024


On 2024-01-29, Andre Bolinhas <andre.bolinhas at articatech.com> wrote:
> I'm running Squid 5.9, and sometimes I have an issue that cause a proxy 
> malfunction.
> I have set the max_filedescriptors to 159514 and it's works fine for a 
> few hours or day, but then suddenly, Squid run out of filedescriptors.
...
> Checking mgr:info inside squidclient I can see that squid only set 4096 
> filedescriptors per kid instead 15951.
>
> Can you help me to understand why Squid losses filedescriptors and don't 
> start with the correct filedescriptors values set in configuration file?

You may be running into OS limits - either kernel limits, or per-process
limits. For example, on BSDs you would often need to adjust /etc/login.conf,
and possibly also a sysctl.




More information about the squid-users mailing list