Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2009 15:45:30 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        John Almberg <jalmberg@identry.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: reducing size of apache instances
Message-ID:  <6201873e0909111345t1e575dd3pd1b9985aa51813f2@mail.gmail.com>
In-Reply-To: <4AAAB124.8050908@identry.com>
References:  <4AA9BCF0.6040003@identry.com> <h8dek8$tsa$1@ger.gmane.org> <4AAA577A.8070103@identry.com> <h8dq3n$4pi$1@ger.gmane.org> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 11, 2009 at 3:20 PM, John Almberg <jalmberg@identry.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6201873e0909111345t1e575dd3pd1b9985aa51813f2>