Date: Thu, 08 Apr 1999 13:49:28 -0500 From: Kim Shrier <kim@tinker.com> To: Prime Internet Network <webmaster@primenetwork.net>, freebsd-isp@freebsd.org Subject: Re: Can't Spawn Child Process Message-ID: <370CFA38.672879FC@tinker.com> References: <3.0.32.19990408111841.0131c118@mail.primenetwork.net>
next in thread | previous in thread | raw e-mail | index | archive | help
You are probably hitting the "max user processes" limit. You can look at this number using the "ulimit -u" command. This number is the maximum number of processes that a user can run at one time. This is also known as the soft limit. You can raise this number up to the hard limit value which you can see with the "ulimit -Hu" command. I have modified the shell script that starts apache on my system to raise the processes limit prior to starting the apache daemon. For example, if you wanted to set the processes limit to 1000 (assuming that your hard limit was > 1000), you would add the following line prior to starting the apache daemon: ulimit -u 1000 Hope this helps. Kim Shrier kim@tinker.com Prime Internet Network wrote: > > > I am running FreeBSD 2.2.6 and I am having this problem all the time. > > 'Error - server couldn't spawn child process' in my apache logs. > > Then sure enough I check to see if CGI's are working and they are all dead. > > The server is a high load web hosting machine and has 256MB of RAM, the > processor load is only ever at 2-3%. > > IS there anyplace special that I need to look at or modify to make this > thing handle more processes without quiting on me. > > One small note to this problem... When I stop and then restart the Apache > server the problem will go away for about 20 minutes and then come back. > It doesn't seem to effect anything on the system but the running of CGI > processes. > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?370CFA38.672879FC>