Date: Wed, 8 Nov 2000 13:33:07 +0200 From: "Yavuz Maslak" <ymmaslak@hotmail.com> To: <questions@FreeBSD.org> Subject: How I do get rid of that problem ? Message-ID: <OE48p8ARf3sllNY30kk000004f4@hotmail.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C04988.6E4269C0 Content-Type: text/plain; charset="windows-1254" Content-Transfer-Encoding: quoted-printable Hello All I use FreeBSD4.2 and I installed squid2.3stable4 and it works. My server has 2Gbyte Ram, 2CPU P3-500Mhz I assigned 14Gbyte Ram for squid's cachedir I got message from /var/log/messages as following xmalloc: Unable to allocate 4096 bytes!=20 Running out of filedescriptors=20 Thereupon=20 I read in http://www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7 (and other = parts of it) and I compiled custom kernel for squid settings that as = following (certainly concerned part of it); maxusers 512 options MAXDSIZ=3D(1600*1024*1024) options DFLDSIZ=3D(512*1024*1024) options NMBCLUSTERS=3D10240 Also I set cache_mem at 400Mbyte in squid.conf After that I haven't got any above messages. But I have a problem. When many people (about 500) connected to internet = via my squid I get many messages as following; squid[8317]: comm_accept: FD 8: (53) Software caused connection abort squid[8317]: httpAccept: FD 8: accept failure: (53) Software caused = connection abort =20 (in early morning times I never run into that problem. Because there's = no too many people. Also I believe that like a power server should = supports thousands of people)=20 After a few hours or sometimes 30 minutes the squid server restart by = itself You already know that dns port is 53 My squid uses two dns servers that both the same subnet with my squid. = That is there's no network problem Also I allowed at 53 port in ipfw.sh as following; ipfw add allow tcp from any to any 53 =20 How can I get rid of that problem ? What shall I do ?=20 Best regards ------=_NextPart_000_0007_01C04988.6E4269C0 Content-Type: text/html; charset="windows-1254" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1254"> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hello All</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I use FreeBSD4.2 and I installed = squid2.3stable4=20 and it works.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>My server has 2Gbyte Ram, 2CPU=20 P3-500Mhz</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I assigned 14Gbyte Ram for squid's=20 cachedir</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I got message from /var/log/messages as = following</FONT></DIV> <DIV><FONT size=3D2><FONT size=3D3>xmalloc: Unable to allocate 4096 = bytes!</FONT>=20 </FONT></DIV> <DIV>Running out of filedescriptors </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thereupon </FONT></DIV> <DIV><FONT face=3DArial size=3D2>I read in <A=20 href=3D"http://www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7">http://www.s= quid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7</A> (and=20 other parts of it) and I compiled custom kernel for squid settings = that as=20 following (certainly concerned part of it);</FONT></DIV> <DIV><FONT face=3DArial = size=3D2>maxusers =20 512</FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2>options =20 MAXDSIZ=3D(1600*1024*1024)<BR>options = =20 DFLDSIZ=3D(512*1024*1024)<BR>options &= nbsp; =20 NMBCLUSTERS=3D10240</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Also I set cache_mem at 400Mbyte in=20 squid.conf</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>After that I haven't got any above = messages.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>But I have a problem. When many people = (about 500)=20 connected to internet via my squid I get many messages as=20 following;</FONT></DIV> <DIV><FONT face=3DArial size=3D2>squid[8317]: comm_accept: FD 8: (53) = Software=20 caused connection abort<BR>squid[8317]: httpAccept: FD 8: accept = failure: (53)=20 Software caused connection abort </FONT></DIV> <DIV><FONT face=3DArial size=3D2>(in early morning times I never run = into that=20 problem. Because there's no too many people. Also I = believe that=20 like a power server should supports thousands of = people) </FONT></DIV> <DIV><FONT face=3DArial size=3D2> After a few hours or sometimes 30 = minutes the squid server restart by itself</FONT></DIV> <DIV><FONT face=3DArial size=3D2>You already know that dns port is = 53</FONT></DIV> <DIV><FONT face=3DArial size=3D2>My squid uses two dns servers that both = the same=20 subnet with my squid. That is there's no = network problem</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Also I allowed at 53 port in = ipfw.sh as=20 following;</FONT></DIV> <DIV><FONT face=3DArial size=3D2>ipfw add allow tcp from any to any=20 53 </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>How can I get rid of that problem ? = What shall I=20 do ? </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Best regards</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_0007_01C04988.6E4269C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE48p8ARf3sllNY30kk000004f4>