Re: [squid-users] squid/3.0.STABLE7 - File Desc issues

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 13 Sep 2010 01:28:55 +0000

On Mon, 13 Sep 2010 09:01:03 +0800, verygeek_at_gmail.com wrote:
> Hi,
>
> Our squid/3.0.STABLE7 is receiving the following Warnings...
>
> 2010/09/07 18:29:59| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:30:15| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:30:31| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:30:47| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:31:03| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:31:19| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:31:35| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
> 2010/09/07 18:31:51| client_side.cc(2690) WARNING! Your cache is
> running out of filedescriptors
>
> I understand that I had to File Descriptor in the squid.conf...
>
> I have changed ..
>
> /etc/squid/squid.conf
>
> added..
>
> max_filedesc 4096
>
> and then started the squid services again.
>
> It then came back with it didn't recognize the varible and thus
> wouldn't start squid.

Yes 3.0 does not support that. Please try 3.1. Which is available on
J.Skalas pages too http://people.redhat.com/jskala/squid/

>
> I then had the remove the varible from the config file.
>
> I am told the version of squid was found through..an RPM (redhat
> package manager) within Redhat
>
> I heard I might need to recompile? I know details are a little
> sketchy, don't know alot about Linux so you will have to forgive me
> there.

It should be enough to run "ulimit -HSn 123" (where 123 is the number of
filedescriptors you want).

This needs to be run before building squid 3.0 and also before each time
it is started. For other versions its only needed each time Squid is run.

Amos
Received on Mon Sep 13 2010 - 01:29:01 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 13 2010 - 12:00:02 MDT