Hi Pavel,
thanks for you answer.
Yes, I know. Linux "lsof" command lists all of it, including sockets, pipes.
The problem should not be "too many open files", since the limit is
configured to 65535 and applied in both squid and OS. I have checked
with "su squid ; ulimit -n", it shows 65535. In the cache.log, when
starting, squid itselft says that it is using 65535 FD as its limit.
But even then, at some point, i suppose that when squid tries to open
a bunch of files (or sockets) it fails. And then, "Reserved FD
adjusted from 100 to 64542 due to failures".
I'm using RHEL, with SELinux, not sure I have PAM installed, but i
will check. Also, i don't see how "ulimit -n 65535" in the startup
script is going to be applied to squid user. If i put the command
there, it will be appllied to root, which is the user who runs the
script.
One more thing I didn't had checked and your link reminds me is to
look in the /proc/$PID to see if there is a different value for squid
process. I will look.
thanks!
On Wed, Aug 21, 2013 at 4:36 AM, Pavel Kazlenka
<pavel.kazlenka_at_measurement-factory.com> wrote:
> Hi Carlos,
>
> Please note, that client's requests also spend file descriptors. Use netstat
> to find the exact number.
> If you use ubuntu you could be interested in this thread too:
> http://www.squid-cache.org/mail-archive/squid-users/201212/0276.html
>
> Best wishes,
> Pavel
>
>
> On 08/20/2013 09:57 PM, Carlos Defoe wrote:
>>
>> Hello,
>>
>> Look at this:
>>
>> 2013/08/20 07:55:26 kid1| ctx: exit level 0
>> 2013/08/20 07:55:26 kid1| Attempt to open socket for EUI retrieval
>> failed: (24) Too many open files
>> 2013/08/20 07:55:26 kid1| comm_open: socket failure: (24) Too many open
>> files
>> 2013/08/20 07:55:26 kid1| Reserved FD adjusted from 100 to 64542 due to
>> failures
>> 2013/08/20 07:55:26 kid1| WARNING! Your cache is running out of
>> filedescriptors
>> 2013/08/20 07:55:26 kid1| comm_open: socket failure: (24) Too many open
>> files
>>
>> ulimit -n = 65535 (i have configured it in limits.conf myself)
>>
>> When squid starts, it shows no errors:
>>
>> 2013/08/20 13:38:11 kid1| Starting Squid Cache version 3.3.8 for
>> x86_64-unknown-linux-gnu...
>> 2013/08/20 13:38:11 kid1| Process ID 8087
>> 2013/08/20 13:38:11 kid1| Process Roles: worker
>> 2013/08/20 13:38:11 kid1| With 65535 file descriptors available
>>
>> running lsof gives no more than 8000 files opened when the problem occurs.
>>
>> Why should it say "Too many open files"? Do you think SELinux can be
>> the cause of this issue?
>>
>> thanks
>
>
Received on Wed Aug 21 2013 - 12:17:39 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 21 2013 - 12:00:43 MDT