View Issue Details

IDProjectCategoryView StatusLast Update
0000559Port RequestsPort Requestpublic2020-08-24 03:11
ReporterLewisR Assigned Topsmedley  
PrioritylowSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Summary0000559: Squid 3.2.6
DescriptionSquid 3.0 apparently uses a maximum number of file descriptors set at compile time. For 3.0 Stable 26, this is 2048.
Additional InformationUnlike 2.7 (and 3.1+), 3.0 has no ability to override this setting in squid.conf. I am currently seeing frequent instances of:

2013/01/09 15:37:53| setMaxFD: Cannot increase: setrlimit() not supported on this system

This may be spurious; I haven't checked squidclient mgr:info frequently enough to determine. At startup, I get:

Maximum number of file descriptors: 2048
Available number of file descriptors: 2034
Reserved number of file descriptors: 100

3.1+ (and 2.7) support the max_descriptors directive in squid.conf (which defaults to 0, meaning Squid inherits the system environment space - ulimit, on *nix):

http://www.squid-cache.org/Doc/config/max_filedescriptors/

Other symptoms observed under 3.0 Stable 26:

Frequent high CPU usage, even with completely fresh (empty) cache dirs;
Random crashes (not frequent, but often enough that I notice)

Instead of spending time troubleshooting 3.0, I suggest moving up to latest stable (3.2.6 at the time of this writing, released yesterday, 8 Jan, 2013).

Thanks, Paul!
TagsNo tags attached.

Activities

LewisR

2013-11-19 17:06

developer   ~0002581

3.3.10 is now stable (as of 2013-11-03). :-)

LewisR

2013-11-19 17:08

developer   ~0002582

Ref: https://groups.google.com/d/msg/apache2/kQe4F5iVNNs/mBlZbyuyavMJ

psmedley

2013-11-20 08:16

administrator   ~0002583

afair - squid 3.2/3.3 differs significantly from 3.0 making the update not as trivial as it might seem...

psmedley

2013-12-25 10:12

administrator   ~0002601

OK, I got executables for Squid 3.1.23, built with GCC 4.7.3 - will test in the morning...

psmedley

2013-12-27 21:56

administrator   ~0002603

Initial test build.
http://smedley.id.au/tmp/squid-3.1.23-os2-20131228.zip

Currently using dnsserver.exe to process DNS failures as DNS lookups fail with the internal DNS code which I need to try and debug

psmedley

2013-12-27 22:32

administrator   ~0002604

Internal DNS working in http://smedley.id.au/tmp/squid-3.1.23-os2-20131228b.zip

LewisR

2013-12-27 22:41

developer   ~0002605

Glad you got that fixed. I'll give this later one a spin tomorrow!

Thanks!!

psmedley

2013-12-27 22:48

administrator   ~0002606

on to 3.2.13 now :)

psmedley

2013-12-28 20:44

administrator   ~0002608

http://smedley.id.au/tmp/squid-3.2.13-os2-20131229.zip

psmedley

2013-12-28 21:53

administrator   ~0002610

http://smedley.id.au/tmp/squid-3.3.11-os2-20131229.zip

psmedley

2014-03-13 09:00

administrator   ~0002696

Closed, Squid/2 is now at 3.3.x level

Issue History

Date Modified Username Field Change
2013-01-10 02:11 LewisR New Issue
2013-11-19 17:06 LewisR Note Added: 0002581
2013-11-19 17:08 LewisR Note Added: 0002582
2013-11-20 08:16 psmedley Note Added: 0002583
2013-12-25 10:12 psmedley Note Added: 0002601
2013-12-27 21:56 psmedley Note Added: 0002603
2013-12-27 22:32 psmedley Note Added: 0002604
2013-12-27 22:41 LewisR Note Added: 0002605
2013-12-27 22:48 psmedley Note Added: 0002606
2013-12-28 20:44 psmedley Note Added: 0002608
2013-12-28 21:53 psmedley Note Added: 0002610
2014-03-13 09:00 psmedley Note Added: 0002696
2014-03-13 09:00 psmedley Status new => resolved
2014-03-13 09:00 psmedley Resolution open => fixed
2014-03-13 09:00 psmedley Assigned To => psmedley
2020-08-24 03:11 psmedley Status resolved => closed