RE: [squid-users] Ongoing Running out of filedescriptors

From: Michael Bowe <mbowe_at_pipeline.com.au>
Date: Wed, 10 Feb 2010 11:24:04 +1100

I run some busy installed-from-source squid v3.1 on Lenny

To get more filedescriptors I did this :

* configure with --with-filedescriptors=65536

* Modify the init.d startup script ( which I stole from the packaged
  squid version ) so that it includes "ulimit -n 65535"

To check if your tweaks worked, look in cache.log after starting squid.
In my case it reports "With 65535 file descriptors available"

Hope that helps!

Michael.

> -----Original Message-----
> From: Landy Landy [mailto:landysaccount_at_yahoo.com]
> Sent: Wednesday, 10 February 2010 10:29 AM
> To: Squid-Users
> Subject: [squid-users] Ongoing Running out of filedescriptors
>
> I don't know what to do with my current squid, I even upgraded to
> 3.0.STABLE21 but, the problem persist every three days:
>
> /usr/local/squid/sbin/squid -v
> Squid Cache: Version 3.0.STABLE21
> configure options: '--prefix=/usr/local/squid' '--
> sysconfdir=/etc/squid' '--enable-delay-pools' '--enable-kill-parent-
> hack' '--disable-htcp' '--enable-default-err-language=Spanish' '--
> enable-linux-netfilter' '--disable-ident-lookups' '--
> localstatedir=/var/log/squid3.1' '--enable-stacktraces' '--with-
> default-user=proxy' '--with-large-files' '--enable-icap-client' '--
> enable-async-io' '--enable-storeio=aufs' '--enable-removal-
> policies=heap,lru' '--with-maxfd=32768'
>
> I built with --with-maxfd=32768 option but, when squid is started it
> says is working with only 1024 filedescriptor.
>
> I even added the following to the squid.conf:
>
> max_open_disk_fds 0
>
> But it hasn't resolve anything. I'm using squid on Debian Lenny. I
> don't know what to do. Here's part of cache.log:
Received on Wed Feb 10 2010 - 00:24:09 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 10 2010 - 12:00:05 MST