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

From: <donald.dawson_at_bakerbotts.com>
Date: Tue, 14 Sep 2010 15:38:55 -0500

I had the same issue. We are running Squid 3.1.4 installed via yum. We
can increase our FDs. On our compiled Squid servers, our only option is
to recompile with a larger FD amount.

If you have a yum or install from an rpm, you can edit your
/etc/init.d/squid startup script add set the ulimit before squid starts:

start() {
        probe

        # 08/10/10 DLD
        echo -n "Show ulimt value before: "; ulimit -n
        ulimit -n 8192
        echo -n "Show ulimt value after: "; ulimit -n

        parse=`$SQUID -k parse -f $SQUID_CONF 2>&1`

You can then run squidclient to check on your FDs.

/usr/bin/squidclient -p 8080 -h 127.0.0.1 mgr:info | awk '/^File
descriptor/,/Store Disk files open/'

File descriptor usage for squid:
        Maximum number of file descriptors: 8192
        Largest file desc currently in use: 2416
        Number of file desc currently in use: 2302
        Files queued for open: 0
        Available number of file descriptors: 5890
        Reserved number of file descriptors: 100
        Store Disk files open: 110

-----Original Message-----
From: verygeek_at_gmail.com [mailto:verygeek_at_gmail.com]
Sent: Sunday, September 12, 2010 8:01 PM
To: squid-users_at_squid-cache.org
Subject: squid/3.0.STABLE7 - File Desc issues

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.

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.

Thanks in advance for your time.

Shane

Confidentiality Notice: The information contained in this email and any attachments is intended only for the recipient[s] listed above and may be privileged and confidential. Any dissemination, copying, or use of or reliance upon such information by or to anyone other than the recipient[s] listed above is prohibited. If you have received this message in error, please notify the sender immediately at the email address above and destroy any and all copies of this message.
Received on Tue Sep 14 2010 - 20:39:05 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 15 2010 - 12:00:03 MDT