From owner-freebsd-questions Fri Nov 19 15:29:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id DC6F31506D for ; Fri, 19 Nov 1999 15:29:43 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.0.4] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.092 #1) id 11ovyf-000GnW-00; Fri, 19 Nov 1999 21:53:57 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.092 #1) id 11ovyf-0000xQ-00; Fri, 19 Nov 1999 21:53:57 +0000 Date: Fri, 19 Nov 1999 21:53:57 +0000 From: Ben Smithurst To: Mike Alich Cc: questions@freebsd.org Subject: Re: Child Processes Message-ID: <19991119215357.B3558@strontium.scientia.demon.co.uk> References: <3835C199.ECBA024B@cctinc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3835C199.ECBA024B@cctinc.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Alich wrote: > I have a web server running and it is under thousands of requests per > day, about 500,000 for just one site. The problem I am having is cgi's > can not run because the web server is telling me it can't spawn child > process because resources are temporarily unavailable. > > What can I do to stop this problem? Is there a setting in the kernel or > where can I go. I have been trying to tweak Apache but no luck there... What does `sysctl -a | grep maxproc' show? You *might* be able to increase the values on the fly using sysctl -w kern.maxproc=n and sysctl -w kern.maxprocperuid=n for some value of n, but I never remember if those sysctls are changable. If not, you can increase the maxusers option in your kernel configuration which will increase maxproc and a few other things. -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message