Home > Networking, web_proxy > squid max file descriptor – problem and fix

squid max file descriptor – problem and fix

Symptoms:
Squid (2.6) stops responding when the number of connections reaches a certain number.

More symptoms:
A lot of lines like below start to appear in /var/log/squid/cache.log
WARNING! Your cache is running out of filedescriptors

Reason:
The default max file descriptor is set to 1024 in squid, which can be verified with
/usr/sbin/squidclient -h squid_host_or_ip -p squid_port mgr:info | grep descrip
or
/usr/sbin/squidclient mgr:info | grep descrip
if squid runs on localhost and default port.

The fix:
http://blog.nazmi.web.id/2007/06/20/squid-warning-your-cache-is-running-out-of-filedescriptors/comment-page-1/#comment-2828
http://paulgoscicki.com/archives/2007/01/squid-warning-your-cache-is-running-out-of-filedescriptors/

Os tested:

Centos

Advertisements
Categories: Networking, web_proxy
  1. hirdesh
    May 2, 2011 at 11:34 am

    dear i m usin squid 2.4.stable7-4 .on a rhel sytem.perviously i was using same system with same squid configration for 200 pc for running internet sucessfully but from lst few days its not working as soon as i restart squid it dies within a few minutes .and in cache log it show-your cache is runng out of file descriptor though i m runng a single pc from it..so give pls assit me .

    • vitmac
      October 27, 2013 at 3:21 pm

      I know this is an old tread but i´m having the same problem! how did you resolve your problem? thank you very much

      • November 2, 2013 at 8:00 pm

        Have you tried to follow the url mentioned in “The Fix” section?

      • vitmac
        November 5, 2013 at 1:19 pm

        Thank you for the reply. Yes, but with no result.
        My solution is very old, RH8 with squid 2.4 stable7. I cannot apply to squid.conf SQUID_MAXFD=4096

  2. ricoch3n
    May 3, 2011 at 2:09 am

    Hi did you follow the URL under “The Fix”? Pls show what you’ve got so far. Having file descriptor running should not cause squid to die, I suspect it’s something else. Show your config and log if you want.

  3. Riyaz
    April 30, 2012 at 7:56 am

    Dear,
    The link you mentioned in the post is not available. It is showing ‘Access Denied’. Please repost the correct link

    • ricoch3n
      May 6, 2012 at 2:19 am

      Sorry for the late reply, please see the updated url for answer.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: