From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E1D87138956 for ; Sun, 10 Feb 2013 02:36:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D269F21C052; Sun, 10 Feb 2013 02:36:30 +0000 (UTC) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3913221C007 for ; Sun, 10 Feb 2013 02:36:29 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id tb18so5154751obb.31 for ; Sat, 09 Feb 2013 18:36:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=HZmOQfTdhvtTIlgBhU+YDkTOmUVOpdDDMLb9Gp3JMJM=; b=dy14xM430d7ULelQquTuy4g0Z2kHq1t6qo+EG05YS7jFsNhbQyVgZJ7BTCDRBhYBZC wWEIZ3NptWQg9FOTBtU4zLZz+CBwfCnje1JXiUYy9q6qSUo2nv5pB4IHhE8q5vRqEli6 YTEphecGLOEhC5E8jzqcqZwFiPBM7Urv2RFYZGdB9oSLAxvfAFU7vpwmxgHxE4VVQ3Ym EBWlmkCpf6YaAvc/GXi/+Bt6LRbaMxFP88NFIPq2bWn8cjpaHUL/Cdp8E7b7oCO8Qn1V eBEv7MWmnorxkdNiLwdK4JEXEqNrrZI4sgcwI846QBn+dgtThF0mGKfM58Ql1p+qLDI3 4mBw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.60.170.165 with SMTP id an5mr7462621oec.24.1360463788412; Sat, 09 Feb 2013 18:36:28 -0800 (PST) Received: by 10.76.20.243 with HTTP; Sat, 9 Feb 2013 18:36:28 -0800 (PST) Received: by 10.76.20.243 with HTTP; Sat, 9 Feb 2013 18:36:28 -0800 (PST) In-Reply-To: References: <5113DA25.7060408@gmail.com> <5115BB67.9010307@gmail.com> <51165452.10600@gmail.com> Date: Sat, 9 Feb 2013 21:36:28 -0500 Message-ID: Subject: Re: [gentoo-user] {OT} LWP::UserAgent slows website From: Michael Mol To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=bcaec54b4818d68f5504d555a839 X-Archives-Salt: 5ec0894b-de5f-4787-b3c0-07a4af9374e3 X-Archives-Hash: 06a940be0d91609e3dfc3f07407ae289 --bcaec54b4818d68f5504d555a839 Content-Type: text/plain; charset=UTF-8 On Feb 9, 2013 9:26 PM, "Adam Carter" wrote: > > Sure, so long as Apache doesn't have any additional modules loaded. If >> >> it's got something like mod_php loaded (extraordinarily common), >> mod_perl or mod_python (less common, now) then the init time of >> mod_php gets added to the init time for every request handler. > > > Interesting, so if you have to use mod_php you'd probably be better off running Worker than Prefork, and you'd want to keep MaxConnectionsPerChild on the higher side, to reduce init work you've mentioned, right? May also help to verify that KeepAlive is on and tweak MaxKeepAliveRequests a little higher. Can't; mod_php isn't compatible with mpm_worker. You have to use a single-threaded mpm like prefork or itk. Anyway, you're starting to get the idea why you want a caching proxy in front of apache. --bcaec54b4818d68f5504d555a839 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Feb 9, 2013 9:26 PM, "Adam Carter" <adamcarter3@gmail.com> wrote:
>
> Sure, so long as Apache doesn't have any additional modules loaded= . If
>>
>> it's got something like mod_php loaded (extraordinarily common= ),
>> mod_perl or mod_python (less common, now) then the init time of >> mod_php gets added to the init time for every request handler.
>
>
> Interesting, so if you have to use mod_php you'd probably be bette= r off running Worker than Prefork, and you'd want to keep MaxConnection= sPerChild on the higher side, to reduce init work you've mentioned, rig= ht? May also help to verify that KeepAlive is on and tweak MaxKeepAliveRequ= ests a little higher.

Can't; mod_php isn't compatible with mpm_worker. You= have to use a single-threaded mpm like prefork or itk.

Anyway, you're starting to get the idea why you want a c= aching proxy in front of apache.

--bcaec54b4818d68f5504d555a839--