From owner-freebsd-questions Wed Dec 13 11: 3: 2 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 13 11:02:59 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from joe.pythonvideo.com (joe.pythonvideo.com [209.226.29.94]) by hub.freebsd.org (Postfix) with ESMTP id 2635137B400 for ; Wed, 13 Dec 2000 11:02:59 -0800 (PST) Received: from localhost (joe@localhost) by joe.pythonvideo.com (8.11.1/8.11.0) with ESMTP id eBDJ2fw91003; Wed, 13 Dec 2000 14:02:41 -0500 (EST) (envelope-from joe@advancewebhosting.com) X-Authentication-Warning: joe.pythonvideo.com: joe owned process doing -bs Date: Wed, 13 Dec 2000 14:02:41 -0500 (EST) From: Joe Oliveiro X-Sender: joe@joe.pythonvideo.com To: Keith Simonsen Cc: questions@FreeBSD.ORG Subject: Re: high load web server, resource limits? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You might want to try installing FastCGI as it should help quicken the server and prevent forking of perl scripts (for some of them). Microsoft: "Where would you like to go to today" Linux: "Where would you like to go tomorrow" FreeBSD: "Hey,when are you guys going to catch up" On Wed, 13 Dec 2000, Keith Simonsen wrote: > Hi, > > I'm looking for suggestions on decreasing the load on a webserver that > runs many many perl scripts. > > These are the average statistics: > last pid: 22662; load averages: 148.11, 137.78, 127.95 up 0+02:31:01 > 13:49:46 > 761 processes: 140 running, 591 sleeping, 30 zombie > CPU states: 40.2% user, 0.0% nice, 58.5% system, 1.4% interrupt, 0.0% > idle > Mem: 140M Active, 196M Inact, 60M Wired, 5652K Buf, 100M Free > Swap: 494M Total, 494M Free > > FreeBSD cipher 3.5-STABLE FreeBSD 3.5-STABLE #1: Thu Jul 20 > 11:44:07 > > When the site gets real busy the load average climbs until the machine > locks up. I've searched list archives and not found any applicable > solution. > > Editing the poorly written scripts is not an option, neither is > setrlimit() stuff because I don't want to KILL the process. > > The only solution I can think of is modding apache's suexec module to > change the relative priority of the scripts via nice. > > Thanks in advance for any other suggestions. > > Keith > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message