From owner-freebsd-questions Sun Jun 4 22: 8:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id EE51C37B555 for ; Sun, 4 Jun 2000 22:08:29 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e5558Qr04170; Sun, 4 Jun 2000 22:08:26 -0700 (PDT) Date: Sun, 4 Jun 2000 22:08:26 -0700 From: Alfred Perlstein To: Pekka.Savola@netcore.fi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Setting restrictions on Apache processes Message-ID: <20000604220826.K17973@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from pekkas@netcore.fi on Sun, Jun 04, 2000 at 10:12:04PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Pekka Savola [000604 21:06] wrote: > Hello all, > > I'm having trouble with 3.4-STABLE and Apache 1.3.12 w/ PHP3 and MySQL. ... > > > I thought I could do this with /etc/login.conf but it doesn't seem to have > any effect. Is there anything I'm missing here? > > Now if I understand correctly, those apache processes run as 'nobody' > should have 10 as their priority, etc. This is not the case. You need to run the limit command (shell builtin) to set the limit, either that or use 'su - nobody' but that won't work with apache as you need root to bind to port 80. A solution that may help is lowering the value that apache uses for "max serving" (MaxRequestsPerChild) to something lower than you have it at now, this will get the apache processes to exit more often which can cause more load, but hopefully the ones that are eating reasources will die and let fresh ones with less memory leaked back in. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message