[squid-users] squid with multiple ips is listenting to some ips with port and not all of ips ??!!

Ahmed Allzaeem ahmed.zaeem at netstream.ps
Sun Dec 21 00:40:36 UTC 2014


HI Amos , I tried with 3.4.7 but it has same result !!!!

Here is after compilation :
squid -v
Squid Cache: Version 3.4.7
configure options:  'CXXFLAGS=DMAXTCPLISTENPORTS=10000' '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--enable-cachemgr-hostname=drx' '--localstatedir=/var' '--libexecdir=/lib/squid' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-arp-acl' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--with-filedescriptors=131072' '--with-large-files' '--with-default-user=squid' '--enable-linux-netfilter' 'CFLAGS=-g -O2 -g -Wall -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2 -g -Wall -O2' '--enable-ltdl-convenience'
[root at Proxy squid-3.4.7]#


Here is log logs :
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.
2014/12/20 15:22:15|          The limit is 128 HTTP ports.
2014/12/20 15:22:15| WARNING: You have too many 'http_port' lines.




Any Help ?????


-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of Amos Jeffries
Sent: Saturday, December 20, 2014 5:40 AM
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] squid with multiple ips is listenting to some ips with port and not all of ips ??!!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/12/2014 9:43 a.m., Ahmed Allzaeem wrote:
> Hi Guys I thunk I found the reason . but didn't fix it now !!!
> 
> 
> 
> I ran squid in debug mode and I had :
> 
> 014/12/20 05:38:23| WARNING: You have too many 'http_port' lines.
> 
> 2014/12/20 05:38:23|          The limit is 128
> 
> 2014/12/20 05:38:23| WARNING: You have too many 'http_port' lines.
> 
> 2014/12/20 05:38:23|          The limit is 128
> 
> 2014/12/20 05:38:23| WARNING: You have too many 'http_port' lines.
> 
> 2014/12/20 05:38:23|          The limit is 128
> 
> 2014/12/20 05:38:23| WARNING: You have too many 'http_port' lines.
> 
> 
> 
> 
> 
> As we see there is limitation to 128 ips ,
> 
> How can I increase this value ???
> 


You can increase it if you really have to by building the latest version of Squid (3.4.7 or later anyway) using:
  ./configure CXXFLAGS="-DMAXTCPLISTENPORTS=256"

 or whichever number you want to increase it to.

For each packet read Squid has to check the listening port list to see if it is a read() or accept() operation. Doing even 128 checks per packet is pushing the boundaries for reasonable performance loss.


Amos

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUlXw0AAoJELJo5wb/XPRjru8IAJZ6KfAKIyzMHeC3SFdTdAg+
TjnXR7rSJSU5f53arEPa2vA16F0PxkWXFwjpmG01TuMaDLqg8PROdnWvITYka6+k
D/bqhylRSeE95T9uO8Sdy0gQTHf4Y1To6w77qlNSrpK2j5e32N25dEmQVm2zMa9n
8d044+BWuwMJq9sessLjnYtZEffN1DQCWpjevZx1sa5rvIVBgv1S3RRY2jIrgcMW
XvdMCYlbawGQ997B/BDGttlN8aNf/t1NqAe5ckn9FTKlVYgL/tbRjkC00vtUxzb0
75Yz8b/SONVK5E6BDcfffVvrY0KUvKZrbauhTQ68uFzGpv1Cv/ynTaqyp2NlDQ0=
=HJ+Q
-----END PGP SIGNATURE-----
_______________________________________________
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