[ale] perl & apache

jj at spiderentertainment.com jj at spiderentertainment.com
Fri Aug 6 15:50:19 EDT 1999


How would this setting affect the execution of a perl script ? What's the best
value for this ?

JANINDRA at MS.NDCORP.COM wrote:

> If I understand your question: what you are seeing are "waiting" daemons to
> serve web pages. In /etc/httpd/conf/http.conf there is a line about spare
> servers. What this does is automatically start a webserver and have it wait
> for a connection. I beleive the default is 10. You can set this to whatever
> you want.
>
> Randy
>
> -----Original Message-----
> From: jj at spiderentertainment.com [mailto:jj at spiderentertainment.com]
> Sent: Thursday, August 05, 1999 5:26 PM
> To: "Zhongbin Yu \"jerry\""; ale at ale.org
> Subject: Re: [ale] perl & apache
>
> I run redhat 5.2. We constantly pump out about 2MB/sec. The script in
> question gets accessed maybe 50 time in a day. Zombies quickly disappear.
> I got 512MB ram, and lots of spare HD. I average about 250-350 proccesses.
> Hardly ever goes more then 450.
>
> The only thing out of ordniery that I see when I run ps xa is this :
>
> 21328  ?  R  401:13 /usr/local/apache/bin/httpd
> 22254  ?  R  311:47 /usr/local/apache/bin/httpd
> 24095  ?  R  267:05 /usr/local/apache/bin/httpd
>
> Please help.
>
> Thank you
>
> Zhongbin Yu \"jerry\" wrote:
>
> > #I get this annoying error in the apache 1.3.6 error log file. How would
> > #I go about fixing it ? (The cgi is in perl)
> > #
> > #(11)Resource temporarily unavailable: couldn't spawn child process:
> > #/disk1/web/jason/cgibin/guest.cgi
> >
> > if you keep spawning process by forking for new guest login, then total #
> > of processes may exceed what your OS allows for the user who the CGI or
> > httpd is running as. If it is heavily used, you need probably bump up
> > kerrnel parameter for # of process a user can own. If it is not REALLY
> > heavily hitted, then, you need watch out for hanging child processes
> > (zombie). The parent process need to wait for the kid process. 'man
> > perlipc' for more details.
> >
> > java servLet run one program then multiThread for more connections, I
> > think. It could be more suitable if your site is heavily hitted.
> >
> > Also, some other things on the OS can cause this problem too. This
> > message may mean different things on different OS. Quote your OS may help
> > knowlegable folks on this list to help you quicker.
> >
> > $0.02
> >
> > Jerry






More information about the Ale mailing list