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

2012-12-29 Thread Eliezer Croitoru
There is.. and squid does that.. the limit in compilation options just set the settings to this specific default which if not available ignored and uses the limit by the system and it's logged in the cache.log file. Maybe this function dosnt work well but I'm almost sure it works fine since i

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

2012-12-29 Thread Tianyin Xu
yes, it's confusing to have two different fd limits, one for squid and one for OS. I wonder is it possible to obtain the system fd limits, and put it in the log message when squid is running out of fds? I think that would solve all these kind of problems. T On Sat, Dec 29, 2012 at 3:27 PM, E

Re: [squid-users] Squid Reverse - Add custom header

2012-12-29 Thread Amos Jeffries
On 30/12/2012 6:04 a.m., captchrisd wrote: I am trying to run many HTTP and HTTPS website behind a Squid Reverse Proxy. But it is not acceptable to run the site in HTTPS only, so I need to redirect to HTTPS on occasion. But my backend web server does not know the request was made in HTTPS due to

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

2012-12-29 Thread Eliezer Croitoru
Great! Nice to know that. On 30/12/2012 00:02, 叶雨飞 wrote: ubuntu 10.04 . and appearently /etc/security/limits.conf is not working on it because it doesn;t configure with pam_session. I just added ulimit -n 65535 in my launch script -- Eliezer Croitoru https://www1.ngtech.co.il sip:ngt...@si

[squid-users] Re: Squid did not use the next set cache

2012-12-29 Thread RW
On Thu, 27 Dec 2012 10:54:09 +0100 David Touzeau wrote: > Dear, > > I have set 2 caches on my squid 3.2.5 > > #- Multiple cpus -- (disabled) > workers 1 > cache_dir aufs /var/squid/cache1 1105 16 256 max-size=716800 > cache_dirufs /var/cache/squid 2000 16 256 > > in caches infos we

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

2012-12-29 Thread 叶雨飞
ubuntu 10.04 . and appearently /etc/security/limits.conf is not working on it because it doesn;t configure with pam_session. I just added ulimit -n 65535 in my launch script On Sat, Dec 29, 2012 at 1:56 PM, Eliezer Croitoru wrote: > I am using the trunk version and didn't check any other versi

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

2012-12-29 Thread Eliezer Croitoru
I am using the trunk version and didn't check any other version and I don't think that there was a change about limits checks or way of handling in squid for a long time. The ulimits are tricky in some systems due to system policies. What linux distro are you using? Eliezer On 29/12/2012 23:2

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

2012-12-29 Thread 叶雨飞
Is this a new patch or is it in 3.2.5? I've never seen anything less than 16384 in the log file, even though I've run into the issue in 3.2.5 On Sat, Dec 29, 2012 at 1:19 PM, Eliezer Croitoru wrote: > I made sure and squid logs the current available FD from the OS and not just > using compiled op

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

2012-12-29 Thread Eliezer Croitoru
I made sure and squid logs the current available FD from the OS and not just using compiled options. 2012/12/29 23:16:18 kid1| With 8192 file descriptors available Eliezer On 29/12/2012 22:41, 叶雨飞 wrote: So you are saying even squid is configured to use 16384 fd, it couldn't because limit is

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

2012-12-29 Thread George Herbert
On Dec 29, 2012, at 12:41 PM, 叶雨飞 wrote: > So you are saying even squid is configured to use 16384 fd, it > couldn't because limit is 1024? > > That's kind of confusing, I tried to use ulimit -n 16384 as root to > raise FD limit now, will report back. The ulimit settings need to be system

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

2012-12-29 Thread Eliezer Croitoru
If I remember right it logs it in the cache.log but it's a basic linux settings\knowledge. It's a good idea to check a match between squid and machine limits and report in a case of mismatch by lower value in the system. Eliezer On 29/12/2012 22:41, 叶雨飞 wrote: So you are saying even squid is

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

2012-12-29 Thread 叶雨飞
So you are saying even squid is configured to use 16384 fd, it couldn't because limit is 1024? That's kind of confusing, I tried to use ulimit -n 16384 as root to raise FD limit now, will report back. Maybe squid can probe at start and warn about mis-matching fd limits? On Sat, Dec 29, 2012 at

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

2012-12-29 Thread Eliezer Croitoru
Hey, It's probably the linux ulimit settings. run: ulimit -Sn ulimit -Hn If there is a limit of 1k in the list you will need to change it since squid bound to the OS limits. Regards, Eliezer On 29/12/2012 14:30, 叶雨飞 wrote: Squid is configured with 16384 FD and it is only using 1k, it seems

[squid-users] Squid Reverse - Add custom header

2012-12-29 Thread captchrisd
I am trying to run many HTTP and HTTPS website behind a Squid Reverse Proxy. But it is not acceptable to run the site in HTTPS only, so I need to redirect to HTTPS on occasion. But my backend web server does not know the request was made in HTTPS due to the reverse proxy. I need to be able to add

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

2012-12-29 Thread 叶雨飞
Squid is configured with 16384 FD and it is only using 1k, it seems it is still complains about running out of FD. Is there a regression from 3.2.5 -》 3.2.2 ? 2012/12/29 04:25:53 kid1| Reserved FD adjusted from 100 to 15391 due to failures 2012/12/29 04:25:53 kid1| comm_open: socket failure: (24)