[ic] Occasional/random "Connection reset by peer" errors

Daniel Davenport DDavenport at newagedigital.com
Thu Sep 14 16:23:52 EDT 2006


> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org 
> [mailto:interchange-users-bounces at icdevgroup.org] On Behalf 
> Of Jon Jensen
> Sent: 2006 September 13 -- Wednesday 4:30 PM
> To: interchange-users at icdevgroup.org
> Subject: RE: [ic] Occasional/random "Connection reset by peer" errors
> On Wed, 13 Sep 2006, Daniel Davenport wrote:
> >> Is Interchange in PreFork, or fork-on-demand? What is the 
> MaxServers 
> >> setting?
> >
> > Appears to be fork-on-demand.  There's only one IC running, 
> > unless it's serving a request. 
> > Hrm.....it's in "low" traffic mode, which at the 
> > moment sets MaxServers to 5.  I don't know whether i've 
> > ever seen it busy enough to need 5 copies running...but
> > considering the machine's 
> > serving 15 catalogs...maybe turning it up isn't too bad an idea.
> >
> > Another box, which seems to be running great, has 
> > MaxServers set to 0. 
> > As far as i remember, i didn't do that (i've never had a 
> > reason to tweak 
> > those settings, as until now they've always just worked).  
> > I assume that 
> > unlimits MaxServers -- which, although it works a lot 
> > better than the 
> > current state of things, doesn't seem too safe to me.
> >
> > Going to look at changing the MaxServers setting, and
> > probably turn on 
> > PreFork as it sounds like it'd help speed things up a bit.
> Personally I wouldn't mess with PreFork yet ... one thing at 
> a time. :)

Good idea.  It's on the list of stuff to look at, though, as soon as
things are more stable.

> Try setting MaxServers higher, or to 0. Setting it to 0 can stop some 
> weird signals problems. It does run the risk of a runaway, but if you 
> don't have infinite loops in your code somewhere it's unlikely in my 
> experience.

There is a loop of sorts, but it's mostly client-side waits.  A page in
one of the catalogs shows real-time data which has to be refreshed every
few seconds.  Probably not what you meant, though.  :)

I've set MaxServers to 20 for the moment; that seems to have stopped the
error message from appearing for me.  It'll take a while to be sure, but
i had a couple dozen web browsers open, pointing at that data page, and
got no errors.  That's a pretty good sign.

Daniel Davenport
New Age Digital

More information about the interchange-users mailing list