Date: Fri, 3 Apr 1998 09:34:49 -0500 (EST) From: John Fieber <jfieber@indiana.edu> To: Andrew Heath <drew@bluetongue.com.au> Cc: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Memory Leak??? Apache, CGI, can't spawn child process Message-ID: <Pine.BSF.3.96.980403090541.357I-200000@fallout.campusview.indiana.edu> In-Reply-To: <Pine.BSF.3.96.980403195217.1028A-400000@skink.bluetongue.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Fri, 3 Apr 1998, Andrew Heath wrote: > I appreciate any assistance here, as our server is now continually comung > up with a CGI can't spawn child process error, and as we are running a > reasonable heavily loaded server, this is a problem. > > FYI we are also running a reasonable loaded DNS server, and Hughes > MiniSQL. The mimiSQL server is running as "nobody" One word: /etc/login.conf According to the information you supplied, you have gobs of free resources, but /etc/login.conf sets limits on how much users can use. Put the attached cgi script in your cgi-bin and call it. It will report limits that the web server is running under. The limits specified under "daemon" in /etc/login.conf are in effect when /etc/rc is run, which I presume is when you are starting apache and friends. You probably need to boost the number of processes that daemon can run. Resource limits are inherited and don't change unless explicitly changed by the process. Init sets the limits according to the daemon entry in /etc/login.conf when running /etc/rc. Thus, httpd daemons started by boot by root running as nobody inherit the limits for daemon. -john [-- Attachment #2 --] #!/bin/sh # # Print some information about the operating environment # of the httpd daemon and the cgi scripts it runs. # echo "Content-type: text/plain" echo "" echo "I am:" id echo "" echo "Limits:" ulimit -a echo "" echo "Environment:" env echo "" echo "Uptime:" uptime
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980403090541.357I-200000>
