Re: [squid-users] Warning in cache.log

From: Alejandro Bednarik <alejandro_at_xtech.com.ar>
Date: Tue, 21 Oct 2008 14:17:41 -0300 (ART)

 If you are running Debian, you can try changing SQUID_MAXFD in
/etc/default/squid use something higher like 4096 or 8192 and restart
Squid. Other option is to build squid yourself. This needs a couple of
steps, like changing #define _ _FD_SETSIZ in /usr/include/bits/types.h
before compile. There is also a workaround doing echo 8192 >
/proc/sys/fs/file-max and ulimit -Hn 8192 and then start squid, but is
not the best solution.

Cheers!

Paras Fadte wrote:
> ulimit -n shows 1024
>
> On 10/21/08, Alejandro Bednarik <alejandro_at_xtech.com.ar> wrote:
>>
>> Which is the output of "ulimit -n" (for linux) or "sysctl -a | grep
>> maxfiles" (for BSD)
>>
>> Cheers!
>>
>>
>> Paras Fadte wrote:
>> > Hi,
>> >
>> > I get following message in cache.log .
>> >
>> > WARNING! Your cache is running out of filedescriptors
>> >
>> > How can it be resolved ?
>> >
>> > Thanks.
>> >
>> > -Paras
>> >
>>
>>
>>
>> --
>> Alejandro Bednarik
>> XTech - Soluciones Linux para Empresas
>> (011) 5219-0678
>> alejandro_at_xtech.com.ar
>>
>>
>>
>

-- 
 Alejandro Bednarik
 XTech - Soluciones Linux para Empresas
 (011) 5219-0678
 alejandro_at_xtech.com.ar
Received on Tue Oct 21 2008 - 17:17:23 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 21 2008 - 12:00:04 MDT