Your cache is running out of filedescriptors

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Your cache is running out of filedescriptors

Rejaine Monteiro
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?
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Your cache is running out of filedescriptors

Rejaine Monteiro
Solved putting the following configuration in /etc/security/limits.conf file:

squid           hard    nofile          4096
squid           soft    nofile          4096

2018-05-28 13:45 GMT-03:00 Rejaine Monteiro <[hidden email]>:

> 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?
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Your cache is running out of filedescriptors

Matus UHLAR - fantomas
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 <[hidden email]>:
>> 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, [hidden email] ; 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
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Your cache is running out of filedescriptors

L.P.H. van Belle
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:[hidden email]] Namens
> Matus UHLAR - fantomas
> Verzonden: dinsdag 29 mei 2018 8:58
> Aan: [hidden email]
> 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
> <[hidden email]>:
> >> 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, [hidden email] ; 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
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users