[squid-users] Squid File descriptors warning

Alex K rightkicktech at gmail.com
Tue Aug 7 09:17:31 UTC 2018


On Tue, Aug 7, 2018 at 11:26 AM, Amos Jeffries <squid3 at treenet.co.nz> wrote:

> On 07/08/18 19:45, Alex K wrote:
> > Hi all,
> >
> > I observed the following warning at squid cache logs:
> >
> > WARNING! Your cache is running out of filedescriptors
> >
> > Googling around I tried to increase the default file descriptors of the
> > system (I am runnign Debian9 x64 bit), by setting at /etc/sysctl.conf:
> >
> ...
> >
> > I am running a compiled version 3.5.23.
> >
> > I am not sure I have done the correct steps or if I need to tweak the
> > ulimits also.
> > Any experience from your side?
>
> The init script installed with Squid 3.x on Debian sets the limit to 64K
> file descriptors.


> What is Squid startup logging for file descriptors available?
>  Probably in the system /var/log/messages log, if not cache.log.
>

After having set the parameter at squid.conf I get:

With 65535 file descriptors available

Without settings it I get:

With 4096 file descriptors available

Which seems to be the value I have set at /etc/systemd/system.conf and
/etc/systemd/user.conf:

DefaultLimitNOFILE=4096

Setting such values at /etc/security/limits.conf as below, doesn't seem to
affect anything:

proxy            soft    nofile          4096
proxy            hard    nofile          1048576

Without settings any limits I get:

With 1024 file descriptors available

which seems to be reflecting the default value reported from ulimit -a.



> Amos
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20180807/2edca102/attachment-0001.html>


More information about the squid-users mailing list