Search squid archive

Re: Squid File descriptors warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Aug 7, 2018 at 11:26 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> 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@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux