Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 2004 11:28:16 -0600
From:      "Stephane Raimbault" <segr@hotmail.com>
To:        gnn@FreeBSD.org
Cc:        net@FreeBSD.org
Subject:   Re: Error 49, socket problem?
Message-ID:  <BAY24-F29fqR77bieLY0001b6c1@hotmail.com>

next in thread | raw e-mail | index | archive | help


>From: gnn@FreeBSD.org
>To: "Stephane Raimbault" <segr@hotmail.com>
>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*.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY24-F29fqR77bieLY0001b6c1>