From owner-freebsd-isp Tue Oct 19 13:22:43 1999 Delivered-To: freebsd-isp@freebsd.org Received: from mail.wzrd.com (mail.wzrd.com [206.99.165.3]) by hub.freebsd.org (Postfix) with ESMTP id 19B1817BFA for ; Tue, 19 Oct 1999 13:22:39 -0700 (PDT) (envelope-from danh@wzrd.com) Received: by mail.wzrd.com (Postfix, from userid 91) id D36005D001; Tue, 19 Oct 1999 16:22:38 -0400 (EDT) Subject: Re: apache server can't spawn child processes In-Reply-To: from "D. Alex Neilson" at "Oct 19, 1999 1:11:30 pm" To: neilson@purple.nugate.com (D. Alex Neilson) Date: Tue, 19 Oct 1999 16:22:38 -0400 (EDT) Cc: freebsd-isp@freebsd.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1851 Message-Id: <19991019202238.D36005D001@mail.wzrd.com> From: danh@wzrd.com (Dan Harnett) Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, In your httpd.conf file, what do you have MaxRequestsPerChild set to? It is possible you have this set too low. It is set to 30 by default I believe in a stock Apache (not using the ports system), and you will see that error on a heavily loaded server. Try increasing it to 10000000 or so. Dan Harnett > Synopis: apache server can't spawn child processes > > Hello, > > I've got 2.2.6 (yeah, I'll upgrade one of these days) which > runs a very busy server of typically 300 nobody users (what apache > children run as), and cgi programs can't spawn, getting this in the > error log for this server: > > (35)Resource temporarily unavailable: > couldn't spawn child process: > /content/somesite/public-html/something/cgi/step1.cgi > > I've beefed up maxusers to 512 which I now realize is overkill, > increased CHILD_MAX to 512 in /usr/include/syslimits.h, tweaked > the login.conf to this (I presume nobody maps to default): > > default:\ > :cputime=infinity:\ > :datasize-cur=88M:\ > :stacksize-cur=64M:\ > :memorylocked-cur=40M:\ > :memoryuse-cur=256M:\ > :filesize=infinity:\ > :coredumpsize=infinity:\ > :maxproc-cur=512:\ > :openfiles-cur=8191:\ > :priority=0:\ > :requirehome@:\ > :umask=022:\ > :tc=auth-defaults: > > Here's how busy the server is right now (1pm PDT): > > 24.5 requests/sec - 437.6 kB/second - 17.9 kB/request > 295 requests currently being processed, 30 idle servers > > I don't know what ceiling I'm banging up against and would appreciate > pointers on beefing up system parameters to accomodate large apache > server loads. > > Thanks, > > Alex > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message