Search squid archive

Re: Squid performance issues

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

 



From:

https://serverfault.com/a/717273/227456

 

2

The number of file descriptors is set in the systemd unit file. By default this is 16384, as you can see in /usr/lib/systemd/system/squid.service.

To override this, create a locally overriding /etc/systemd/system/squid.service which changes the amount of file descriptors. It should look something like this:

.include /usr/lib/systemd/system/squid.service

 

[Service]

LimitNOFILE=65536

Do not edit the default file /usr/lib/systemd/system/squid.service, as it will be restored whenever the package is updated. That is why we put it in a local file to override defaults.

After creating this file, tell systemd about it:

systemctl daemon-reload

and then restart squid.

systemctl restart squid

 

 

Eliezer

 

 

 

From: NgTech LTD <ngtech1ltd@xxxxxxxxx>
Sent: Tuesday, August 31, 2021 6:11 PM
To: Marcio B. <marciobacci@xxxxxxxxx>
Cc: Squid Users <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Squid performance issues

 

Hey Marcio,

 

You will need to add a systemd service file that extends the current one with more FileDescriptors.

 

I cannot guide now I do hope to be able to write later.

 

If anyone is able to help faster go ahead.

 

Eliezer

 

 

בתאריך יום ג׳, 31 באוג׳ 2021, 18:05, מאת Marcio B. <marciobacci@xxxxxxxxx>:

Hi,

I implemented a Squid server in version 4.6 on Debian and tested it for about 40 days. However I put it into production today and Internet browsing was extremely slow.

In /var/log/syslog I'm getting the following messages:

Aug 31 11:29:19 srvproxy squid[4041]: WARNING! Your cache is running out of filedescriptors

Aug 31 11:29:35 srvproxy squid[4041]: WARNING! Your cache is running out of filedescriptors

Aug 31 11:29:51 srvproxy squid[4041]: WARNING! Your cache is running out of filedescriptors


I searched the Internet, but I only found very old information and referring files that don't exist on my Squid Server.

The only thing I did was add the following value to the /etc/security/limits.conf file:

*-nofile 65535

however this did not solve.

Does anyone have any idea how I could solve this problem?

 

Regards,

 

Márcio Bacci

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
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