From owner-freebsd-hackers Mon Dec 11 06:10:14 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA08576 for hackers-outgoing; Mon, 11 Dec 1995 06:10:14 -0800 (PST) Received: from bigbird.vmicls.com (bigbird.vmicls.com [198.17.96.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA08561 for ; Mon, 11 Dec 1995 06:10:09 -0800 (PST) Received: from gonzo by bigbird.vmicls.com (8.6.12/SMI-4.1-vmicls-master-host-1) id JAA22621; Mon, 11 Dec 1995 09:12:45 -0500 From: Jerry.Kendall@vmicls.com (Jerry Kendall) Organization: VMI Communications and Learning Systems Received: by gonzo (5.0/vmi-client-host-1) id AA02395; Mon, 11 Dec 1995 09:12:43 +0500 Date: Mon, 11 Dec 1995 09:12:43 +0500 Message-Id: <9512111412.AA02395.gonzo@vmicls.com> To: joe@ns.via.net, hackers@freebsd.org Subject: Re: unable to fork???? X-Sun-Charset: US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk > > > I have a 100MHZ pentium that I use as a web and FTP server. Recently > we've been seeing Apache complaining about "can't spawn process". After > making it print out errno from the failing fork(), we're getting EAGAIN. > > I make a kernel with maxusers == 50 thinking that this would solve my problem. > but it didn't. > > Normally the system runs with 65-70 processes. When it gets to 99 or 100 it > refuses to fork any more. > > Where is this limit set? How can I increase it? What other resources can I > tweak for a heavily loaded machine? > > Thanks, > > Joe > Joe, I had a similar problem. Try adding these lines to you kernel config file: maxusers 64 options "CHILD_MAX=256" options "OPEN_MAX=256" By doing this I was able to open more than 20 or so xterms.... Maybe this will help you.