Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 1995 09:12:43 +0500
From:      Jerry.Kendall@vmicls.com (Jerry Kendall)
To:        joe@ns.via.net, hackers@freebsd.org
Subject:   Re: unable to fork????
Message-ID:  <9512111412.AA02395.gonzo@vmicls.com>

next in thread | raw e-mail | index | archive | help
> 
> 
> 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.



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