[squid-users] socket failure: (24) Too many open files

Cherukuri, Naresh ncherukuri at partycity.com
Fri Oct 5 19:51:36 UTC 2018


Thanks for quick turnover!

Please find following details that you requested.

>On what Operating System?
Operating system : Red Hat 7.0

> I Increased the memory from 12 GB to 32 GB

> You mean you put more memory into the server, or you re-configured something in 
software (if so, what)?

We put more memory into server. Before the server has 12 GB and we increase to 32GB.

> and Max file descriptors from "4096" to "8192"

[root at squidprod ~]# cat /etc/squid/squid.conf | grep "max_filedescriptors"
max_filedescriptors 8192

>ulimit -a value
[root at squidprod ~]# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 255941
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 8192
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 255941
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

[root at squidprod ~]# lsof | wc -l
10875

Thanks,
Naresh
-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of Antony Stone
Sent: Friday, October 5, 2018 12:35 PM
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] socket failure: (24) Too many open files

On Friday 05 October 2018 at 17:57:39, Cherukuri, Naresh wrote:

> Hello Squid Group,
> 
> 
> I am using squid 3.5.20 as a proxy server.

On what Operating System?

> I Increased the memory from 12 GB to 32 GB

You mean you put more memory into the server, or you re-configured something in 
software (if so, what)?

> and Max file descriptors from "4096" to "8192"

How did you do that?

What does "ulimit -a" tell yoou?

> and deployed this server into production on 09/26/2018".
> 
> I don't have any problem from the past 10 days everything working as
> expected till today.

How many users do you have, what sort of number of connections per 
second/minute/hour (whatever is convenient for you to express) do you have 
going through this machine?

> Now after 10 days for the first time, I got following errors on cache log
> today. Can someone advise/suggest any ideas here?
> 
> 
> Error(s) in /var/log/squid/cache.log: 2018/10/05 11:03:59 kid1| comm_open:
> socket failure: (24) Too many open files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files
> 
> 2018/10/05 11:03:59 kid1| comm_open: socket failure: (24) Too many open
> files

What do "cat /proc/sys/fs/file-max" and "cat /proc/sys/fs/file-nr" tell you?

> [n*****@squidprod ~]$ free -m
>              total       used       free     shared    buffers     cached
> Mem:         32004      15907      16097        138        295      14132
> -/+ buffers/cache:       1480      30524
> Swap:        24999          0      24999

However that has nothing to do with files or descriptors.

What does domething ike "ulimit -a" or "lsof | wc" tell you?


Antony.

-- 
Angela Merkel arrives at Paris airport.
"Nationality?" asks the immigration officer.
"German," she replies.
"Occupation?"
"No, just here for a summit conference."

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


More information about the squid-users mailing list