From owner-freebsd-net@FreeBSD.ORG Thu Oct 14 17:29:02 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C638716A4CE; Thu, 14 Oct 2004 17:29:02 +0000 (GMT) Received: from hotmail.com (bay24-f29.bay24.hotmail.com [64.4.18.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D09743D1D; Thu, 14 Oct 2004 17:29:02 +0000 (GMT) (envelope-from segr@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 14 Oct 2004 10:29:01 -0700 Received: from 198.53.131.3 by by24fd.bay24.hotmail.msn.com with HTTP; Thu, 14 Oct 2004 17:28:16 GMT X-Originating-IP: [198.53.131.3] X-Originating-Email: [segr@hotmail.com] X-Sender: segr@hotmail.com From: "Stephane Raimbault" To: gnn@FreeBSD.org Date: Thu, 14 Oct 2004 11:28:16 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Oct 2004 17:29:01.0877 (UTC) FILETIME=[4BC87E50:01C4B213] cc: net@FreeBSD.org Subject: Re: Error 49, socket problem? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 17:29:02 -0000 >From: gnn@FreeBSD.org >To: "Stephane Raimbault" >CC: net@FreeBSD.org >Subject: Re: Error 49, socket problem? >Date: Thu, 14 Oct 2004 10:46:58 +0900 > >At Wed, 13 Oct 2004 09:36:03 -0600, >Stephane Raimbault wrote: > > > > I doubt it's a DoS attack, however it could very well be. > > > >Well, probably not, given what you told us below. > > > In this particular setup, apache runs on port 80 and 81. A slimed down > > version of apache handles basic http requests on port 80 and on port 81, >we > > have a beefier version of apache with php running applications. We >proxy > > the request from port 80 to port 81 so the client only ever sees >connections > > to port 80. > > > > What I find strange is other applications on the server freak out when >this > > is happening in the same manner. such as php not able to make mysql > > connections with a similar error. The errors aren't limited to >127.0.0.1 > > either, it seems to be an overall problem with the box, not specifically >the > > loopback or apache. > > > > PHP Warning: mysql_connect(): Can't connect to MySQL server on > > 'dbm.xxx.xxx.com' (49) in /www/index.php on line 4060 > > > > In this case the above dbm.xxx.xxx.com resolves to 10.0.12.22 which is >one > > of the MySQL server's in the cluster. > > > > I've ruled out that it's a problem with the MySQL server in this case, > > because I have 4 other web servers (running apache) able to connect to >that > > MySQL server during the same time. All web servers in this cluster seem >to > > exhibit the error randomly at diffrent times. Not only during high peak > > traffic times as previously thought. > > > > Are there buffers I could be running out of? What should I be checking? > > Perhaps something in sysctl... If I know what I should probably be >looking > > at, I can probably monitor and have certain variables logged / graphed >for a > > better idea of what is going on. > > > >What version of FreeBSD are you running? > % uname -r 4.9-RELEASE-p11 >I would check the interfaces (ifconfig -a), routing table (netstat >-rn), and then the rest of the network statistics (man netstat) when >this happens. Does it happen reliably or intermittently? > I will see if I can write a script that can be triggered when the errors occur. The errors are randomly intermittent. >Later, >George Thanks, Stephane. _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.