Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 127D676D7 for ; Thu, 15 Dec 2011 12:42:19 +0000 (UTC) Received: (qmail 58797 invoked by uid 500); 15 Dec 2011 12:42:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 58722 invoked by uid 500); 15 Dec 2011 12:42:15 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 58714 invoked by uid 99); 15 Dec 2011 12:42:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 12:42:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tevans.uk@googlemail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 12:42:05 +0000 Received: by vbbu11 with SMTP id u11so1883053vbb.18 for ; Thu, 15 Dec 2011 04:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Vj54SKMpJx119qOykU8ybk/Kx8F3Wwo3RLJpma3CHQg=; b=igQLWhIrPZHBYZgvY0z9heXINXUFc8TVveopi1NLucYjrY1sRsNIHXVxwaeXZ7vDCS Ribw7N9HpdKsU744HQRNv1nEYaqVtPcXqEvaKV4Pp+1Uz49WEabogpKe9jpbKP0mSfRx Z9LzT5dcQpBe++j8Iu1vsjYcRv2OA5kAo31pA= MIME-Version: 1.0 Received: by 10.52.21.211 with SMTP id x19mr2861245vde.58.1323952904811; Thu, 15 Dec 2011 04:41:44 -0800 (PST) Received: by 10.52.162.202 with HTTP; Thu, 15 Dec 2011 04:41:44 -0800 (PST) In-Reply-To: <0ACABF6B29D1F84F99B2BB7866923B0F51CA6189@0303mail03.cecred.coop.br> References: <0ACABF6B29D1F84F99B2BB7866923B0F51CA6189@0303mail03.cecred.coop.br> Date: Thu, 15 Dec 2011 12:41:44 +0000 Message-ID: From: Tom Evans To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] high load average On Thu, Dec 15, 2011 at 12:18 PM, Diego Maciel Gomes wrote: > hey Guys... > > I need help :) > > I have an intranet running with LAMP. I have a server with 8gb mem and 4 > procs for this. My apache is 2.2.3 > > I have about 400 users connected (ps -ef |grep httpd |wc -l) > > At this moment, Im using 4.3gb of mem and sometimes I have a high use of > procs.. > > My load average at this moment is 4.62, 4.77 and 4.32. more than three times > a day, I have a high use of average, like 34.15, 23.71 and 16.89. > > Im thinking to do an apache cluster.. but, I dont know if it is the correct > way... > > I dont have any change in my intranet more than 6 months... I feel that this > high load average started when I did an apache update... > > Anyone have any idea to help me? > > Thanks anyway, > > Diego > You updated to Apache 2.2.3? That is an extremely old version - we're now on 2.2.21 - what version did you start from :o It almost certainly is not Apache that is the issue. Apache is probably the most simple and consistent part of a LAMP stack, and fetching and serving content is not a computationally expensive task. A high load average means you have lots of processes on the run queue/waiting for IO, on a LAMP stack this probably means you have many requests waiting for their turn at the database, which results in requests taking longer, and that means you will have more concurrent requests, which means more Apache processes/threads/workers/memory. More concurrent requests will usually also mean more concurrent queries to the database, meaning things only get worse until the number of users accessing the site dies down. LAMP is not one thing, it is a stack. Therefore you should look at all aspects of the stack: PHP memory usage can be an issue. You should check how much memory and CPU PHP is using by serving it in a more efficient manner, eg using mod_fcgid, so that it is isolated from Apache. MySQL gets slow when overloaded. Are queries taking too long in peak times? Do you need to scale out the DB? Are writes destroying read speed? Cheers Tom --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org