From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 11:38:17 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5C7A16A4D4 for ; Tue, 15 Feb 2005 11:38:17 +0000 (GMT) Received: from MXR-4.estpak.ee (mta2.mail.neti.ee [194.126.101.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id F08A343D46 for ; Tue, 15 Feb 2005 11:38:14 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: from [80.235.60.77] (80-235-60-77-dsl.trt.estpak.ee [80.235.60.77]) by MXR-4.estpak.ee (Postfix) with ESMTP id 220CB129868; Tue, 15 Feb 2005 13:37:58 +0200 (EET) Message-ID: <4211DEC1.6060007@raad.tartu.ee> Date: Tue, 15 Feb 2005 13:36:33 +0200 From: Toomas Aas User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman References: <420B436A.8060202@raad.tartu.ee> <20050214224344.GA1267@gravitas.thebunker.net> In-Reply-To: <20050214224344.GA1267@gravitas.thebunker.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: Apache2 with worker MPM on 5.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 11:38:17 -0000 Matthew Seaman wrote: > Prefork is the original mechanism Apache used to multiplex itself. It > generally works exceedingly well on Unix systems where fork(2) is fast > and efficient, which is why it is the default. Threaded MPMs may or > may not be better for your particular situation, depending on: Thanks a lot for the insight, Matthew. on Sunday I tried installing Apache2 with worker MPM and found out that I also had to rebuild PHP to make libphp4.so support threading. And then I found out that several PHP extensions that we need (such as php4-mysql) do not want to work with threading enabled. I didn't spend too much time investigating because I wanted to get the web server back up within reasonable time, but it seems that some PHP extensions just aren't considered thread safe and refuse to load when threaded version of PHP is in use. So I had to put back Apache2 with prefork MPM. On the positive note, it has been performing better than before. Upgrading the Apache and PHP ports to latest may have something to do with it, as well as me finding and fixing a procedure which occasionally pulled /var/tmp full from remote server via http (aargh).