[squid-users] squid restart
Amos Jeffries
squid3 at treenet.co.nz
Sat Oct 31 15:00:33 UTC 2020
On 1/11/20 12:02 am, Vieri wrote:
> Hi,
>
> Around every hour or so, the Squid proxy client experience comes to a crawl.
> It takes a very long time to load a simple web page.
...
>
> I guess the reason could be for this:
>
> Maximum number of file descriptors: 4096
> Largest file desc currently in use: 4009
> Number of file desc currently in use: 3997
>
Yes, that looks like it.
> However, I set the following directive in squid.conf:
>
> max_filedescriptors 65536
>
Are you using systemd, SysV or another init ?
systemd default limits has this as a known issue for initial startup.
> It doesn't seem to be honored here unless I stop and restart the squid service again (/etc/init.d/squid restart from command line):
>
> File descriptor usage for squid:
> Maximum number of file descriptors: 65535
>
> It seems that if I run the same command (/etc/init.d/squid restart) from crontab, that ulimit is not honored. I guess that's the root cause of my issue because I am asking cron to restart Squid once daily. I'll try not to, but I was hoping to see if there was a reliable way to fully restart the Squid process.
>
> Vieri
>
The init system restart command is the preferred one - it handles any
system details that need updating. Alternatively, "squid -k restart" can
be used.
Amos
More information about the squid-users
mailing list