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

L.P.H. van Belle belle at bazuin.nl
Tue May 29 07:33:24 UTC 2018


Is squid starting with a systemd service startup>? 

If so try: 
systemctl edit squid.service

Add at the Service section: 
[Service]
LimitNOFILE=8192:65535



Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: squid-users 
> [mailto:squid-users-bounces at lists.squid-cache.org] Namens 
> Matus UHLAR - fantomas
> Verzonden: dinsdag 29 mei 2018 8:58
> Aan: squid-users at lists.squid-cache.org
> Onderwerp: Re: [squid-users] Your cache is running out of 
> filedescriptors
> 
> On 28.05.18 15:54, Rejaine Monteiro wrote:
> >Solved putting the following configuration in 
> /etc/security/limits.conf file:
> >
> >squid           hard    nofile          4096
> >squid           soft    nofile          4096
> 
> was there anything like that before? (including "*" in first column)
> 
> It's usually better not to put any limits there.
> 
> >2018-05-28 13:45 GMT-03:00 Rejaine Monteiro 
> <rejaine at bhz.jamef.com.br>:
> >> Hello everyone.
> >>
> >> My squid is running normally, but after a while it stops 
> working and I
> >> have to restart every time. The message that appears in the log is
> >>
> >>      "Your cache is running out of filedescriptors"
> >>
> >> I already configured the fs.file-max = 65535 parameter in 
> /etc/sysctl.conf.
> >>
> >> I am running openSuse 13.2 and also configured in the
> >> /etc/sysconfig/squid to SQUID_DEFAULT_ULIMT = "65535" and  in the
> >> startup script /etc/rc.d/squid  SQUID_ULIMIT 
> =${SQUID_DEFAULT_ULIMT: =
> >> "65535"}
> >>
> >> Nothing solved !!! Any tips?
> 
> -- 
> Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> "One World. One Web. One Program." - Microsoft promotional 
> advertisement
> "Ein Volk, ein Reich, ein Fuhrer!" - Adolf Hitler
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
> 



More information about the squid-users mailing list