From owner-freebsd-apache@FreeBSD.ORG Thu Nov 27 12:41:13 2014 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 077BC2F8 for ; Thu, 27 Nov 2014 12:41:13 +0000 (UTC) Received: from mail.potentialtech.com (virtual1.potentialtech.com [69.25.178.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D952BE46 for ; Thu, 27 Nov 2014 12:41:12 +0000 (UTC) Received: from working.home (c-67-165-86-201.hsd1.pa.comcast.net [67.165.86.201]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 8FADB2383C0 for ; Wed, 26 Nov 2014 06:51:56 -0500 (EST) Date: Wed, 26 Nov 2014 06:47:34 -0500 From: Bill Moran To: apache@freebsd.org Subject: prefork MPM still the default for apache24? Message-Id: <20141126064734.5347ed3a5a163cf4d0c44324@potentialtech.com> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 12:41:13 -0000 I was recently doing some load testing on a new tomcat application I'm working on. Long story short: I found that a performance issue I was hitting was the result of Apache being built with the prefork MPM. Rebuilding with the event MPM increased performace to the same speed as connecting to tomcat directly, which was 20x faster than communicating through Apache using the (default) prefork MPM. This is a tomcat 8 app running on FreeBSD 10.0 with Apache 2.4 This leads me to a few questions: Is there some reason the event MPM is not the default? The Apache community seems to think that it should be (at least, the people I talked to). Is there some obscure issue with it on FreeBSD? Luckily the ports system makes it easy to rebuild Apache with a different MPM, but I'm worried that since the prebuilt version installed by pkg still uses prefork, that a lot of people are getting an underperforming server for no reason. -- Bill Moran I need your help to succeed: http://gamesbybill.com