On Wed, Jun 20, 2012 at 7:30 AM, <gewehre@xxxxxxx> wrote: > I'm running one of the nightly 3.2.0.16. I've always built squid 3.x "--with-filedescriptors=16384". > > Squid Cache: Version 3.2.0.16 > configure options: '--prefix=/usr/local/squid' '--build=i686-apple-darwin' '--mandir=/usr/local/share/man' '--with-large-files' '--disable-ident-lookups' '--disable-dependency-tracking' '--enable-filters' '--enable-removal-policies=heap,lru' '--enable-delay-pools' '--enable-multicast-miss' '--enable-default-err-language=templates' '--enable-fd-config' '--with-filedescriptors=16384' '--with-dl' '--enable-ltdl-convenience' '--enable-http-violations' '--enable-build-info' '--enable-log-daemon-helpers' '--enable-auth-basic=PAM,NCSA,LDAP,NCSA' '--enable-auth-digest=password' '--enable-external-acl-helpers=ip_user,ldap_group' '--enable-ssl' '--enable-internal-dns' '--disable-eui' 'build_alias=i686-apple-darwin' > > So it's very surprising for me to see "WARNING! Your cache is running out of filedescriptors" in cache.log after I pumped a few hundred of connections through recently. > > According to squidclient -r -l localhost -U manager -W passwd mgr:info |grep 'file descr', my instance of squid 3.2.0.16 only has 256 file descriptors: > > Maximum number of file descriptors: 256 > Available number of file descriptors: 221 > Reserved number of file descriptors: 64 > > I can resolve this easily by setting "max_filedescriptors ####" in squid.conf. However, this is supposedly a "Squid 2.7+" feature, according to "http://wiki.squid-cache.org/SquidFaq/TroubleShooting#Running_out_of_filedescriptors". It's not clear whether that's inclusive of Squid 3.x, which is a separate branch from squid 2.6 in my understanding. The other question is why the configure option "--with-filedescriptors=16384" has no effect or stopped taking effect in Squid 3.2.0.16. Is this just an isolated one-off incident? Watch out for the ulimit in the shell launching squid. -- /kinkie