From owner-freebsd-questions Sat Apr 4 20:50:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA21621 for freebsd-questions-outgoing; Sat, 4 Apr 1998 20:50:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from frankenstein.bluetongue.com (frankenstein.bluetongue.com [203.31.198.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA21575; Sat, 4 Apr 1998 20:50:21 -0800 (PST) (envelope-from drew@bluetongue.com.au) Received: from bluetongue.com.au (jade.bluetongue.com [203.31.198.30]) by frankenstein.bluetongue.com (8.8.5/8.8.5) with ESMTP id OAA28756; Sun, 5 Apr 1998 14:49:45 +1000 (EST) Message-ID: <35270D2D.D0F362E4@bluetongue.com.au> Date: Sun, 05 Apr 1998 14:48:46 +1000 From: Andrew Heath Organization: Blue Tongue Software X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: John Fieber CC: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Memory Leak??? Apache, CGI, can't spawn child process References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'd like to publicly thank John, he has hit the nail right on the head. I've no reconfigured the server, rebooted, and all seems to be running well. Thankyou to the others who also pointed out other potential problems with the system. Below I have included the important data from his script before and after the reconfiguration of /etc/login.conf Before: Limits: file size (512-blocks, -f) 131072 max user processes (-u) 32 After: Limits: file size (512-blocks, -f) 262144 max user processes (-u) 256 Hopefully, we will be able to start having less problems now. Cheers, Drew Blue Tongue Online Services - http://www.bluetongue.com.au/ Melbourne Internet Business Directory - http://www.melbourne.business.au.com/ John Fieber wrote: > 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 > > ------------------------------------------------------------------------ > #!/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message