From owner-freebsd-questions@FreeBSD.ORG Fri Sep 11 20:45:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 423D310656A3 for ; Fri, 11 Sep 2009 20:45:32 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yx0-f193.google.com (mail-yx0-f193.google.com [209.85.210.193]) by mx1.freebsd.org (Postfix) with ESMTP id E8A2D8FC21 for ; Fri, 11 Sep 2009 20:45:31 +0000 (UTC) Received: by yxe31 with SMTP id 31so1848129yxe.29 for ; Fri, 11 Sep 2009 13:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=dlnGghT0Am33/fM1W/1cTbO/ThIoTFPF14jJxHIQpq4=; b=YSdE3NWUAkG5A89mxrIxK183W66b2hB1Gb6x38kkDt8u/D3XBnCU4S9uYHfDP+21wg /ppbdAR927c72RAW4pwUJftChjB2FLj7BMeu+sgdUszMpSSQzv12QhTBO40XGqWmbhoy DymttHKYVHKydw4yjx7Q77u3OZrcit83yBhUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=PSDbeo8M9hn0oVnbjPopds47k0xNZYngULLquWMl+bYLaL21UAzOTJy0RxamuJR6vV 4MEgxdXCyfgo92q0bM0y0WPKnsM0A/NzpsrTb7sJ5iRZJh5TeWrjFSwk2RmNl7QPtv6F ItKZZhTgDDEVaP5YuDNjjlusbs2u9NZ5uw/Eg= MIME-Version: 1.0 Received: by 10.150.110.1 with SMTP id i1mr5700520ybc.63.1252701930873; Fri, 11 Sep 2009 13:45:30 -0700 (PDT) In-Reply-To: <4AAAB124.8050908@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> Date: Fri, 11 Sep 2009 15:45:30 -0500 Message-ID: <6201873e0909111345t1e575dd3pd1b9985aa51813f2@mail.gmail.com> From: Adam Vande More To: John Almberg Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: reducing size of apache instances X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 20:45:32 -0000 On Fri, Sep 11, 2009 at 3:20 PM, John Almberg wrote: > > You've misunderstood what you've done. You have not saved a couple of >> MB, you've saved one. Of the 18 MB, nearly all of it is shared memory >> which is only loaded once. >> > > Ah... Okay. That actually makes sense. Thanks for the clarification. > > 1GB web server is more than enough for basic www server, even more. >> > > I would have thought, but some times it really gets slow and I'm trying to > figure out why. When bogged down, the load averages are low. The main thing > that looks out of whack is swap space, which seems to never go below 7%, but > sometimes gets up into the 20%-30% range. When it gets that high, the server > slows to a crawl. > > > last pid: 12732; load averages: 0.44, 0.31, 0.27 > up 34+03:57:58 16:16:27 > 187 processes: 2 running, 185 sleeping > CPU: 4.5% user, 0.0% nice, 1.1% system, 0.0% interrupt, 94.4% idle > Mem: 425M Active, 106M Inact, 268M Wired, 3160K Cache, 110M Buf, 176M Free > Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse > > > You're on the right track pursuing whatever is consuming swap. Are there any other services running on the system which may be consuming mem? eg postgresql? You can start eliminating unnecessary services, and limiting memory by app. php.ini contains a knob for this. Plus as mentioned before limiting number of connections may help depending on what other things system is running. -- Adam Vande More