Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!hunter.premier.net!news.mathworks.com!nntp.primenet.com!news.cais.net!news2.cais.com!news From: root@datamg.com Newsgroups: comp.infosystems.www.misc,comp.unix.bsd.bsdi.misc Subject: Re: Apache/BSDI CGI spawning problem Date: Thu, 08 Aug 1996 12:05:39 GMT Organization: Data Management Group, Inc. Lines: 58 Message-ID: <3209d65c.471402453@news2.cais.com> References: <Pine.BSI.3.91.960807111241.1623D@dca.net> Reply-To: root@datamg.com NNTP-Posting-Host: tomcat.datamg.com X-Newsreader: Forte Agent .99e/32.227 Xref: euryale.cc.adfa.oz.au comp.infosystems.www.misc:42518 comp.unix.bsd.bsdi.misc:4545 Andrew, At the root shell prompt type: limit open unli limit max unli What this does is sets root to unlimited open files and unlimited maximum processes. Restart Apache so that Apache will take those settings and be able to spawn processes as needed. Be sure and set those limits anytime you restart Apache. You also need to place those commands in your rc.local before the command that starts Apache from bootup. Tim On Wed, 7 Aug 1996 11:27:37 -0400, Andrew White <awhite@dca.net> wrote: > >Hello fellow Apache users. > >I'm running an Apache 1.1.1 web server under BSDI 2.1, and have recently >started seeing a problem. The problem is that, after the htttpd process >has been running for some length of time, accesses to ALL cgi scripts (on >all virtual hosts) quit working. The message that shows up in the error >log looks like: > >[Wed Aug 7 11:11:00 1996] access to /local/etc/httpd/cgi-bin/nph-count\ > failed for faith.dca.net, reason: couldn't spawn child process > >Sending a SIGHUP to the httpd process ID fixes the problem for a short >while. To attempt to address this problem, I bumped up the >MinSpareServers and MaxSpareServers in my Apache config files, and >recompiled my BSDI kernel and increased the value of MAXUSERS to 128. >I also have tried starting the server with: > >csh -c "unlimit -h; /local/etc/httpd/httpd &" > >To attempt to remove any shell-based restrictions. Unfortunately, none >of these attempted solutions have fixed the problem. > >If any other administrator knows what the problem is/might be, I'd >appreciate hearing from you. If you post a follow-up to a newsgroup, >please favor me with an e-mail copy of your follow-up. > >-Andrew White > webmaster@www.dca.net > >Andrew White | DCANet: Internet Access for the Delaware Valley >andrew@dca.net | Offering dialup, ISDN, and dedicated Internet access >(302) 654-1019 | in the 215/302/610 area codes. >http://andrew.white.org/ | e-mail: info@dca.net web: http://www.dca.net/ >