Hi Brian,

I should have been clearer; while we do see peaks of up to 300 apache
process they're not all PHP requests (they can be image requests, css,
etc...). In terms of memory usage we'd don't see more than ~1.4GB
being actively used out of 2GB physical (excluding things like cache,
etc...) and we typically hover around 1GB actively used.

However it turns out I did lie about our CPU usage... We are hitting
100% (between us and sy). Previously I was looking at some graphs
which showed up to 75% usage, but these are 5 minute averages. Sitting
on the system during a peak top shows 100% usage.

We're going to look at tweaking the setup, but I keep coming back to
the central issue being the memcached server not responding. No matter
what we do to the set up we're going to load the machines (or worse
the db) if caching starts failing for minutes on end...

-Darryl

On Aug 27, 10:16 pm, Brian Moon <[EMAIL PROTECTED]> wrote:
> John Reilly wrote:
>
> > Hi Darryl,
> > I'm not familiar with the client that you are using, but I would try
> > using a timeout that is lower.  Maybe in the 50-100ms range.  I found 1
> > sec to be too long, but it obviously depends on how many gets you are doing.
>
> The PECL client takes a number in seconds.  So, 1 is as low as you can
> go.  We run with 1 second and never ever ever see this issue.  But, we
> don't run servers that reach 75% CPU either.  My "doing something wrong"
> sense is tingling.  I just don't know enough about this setup to figure
> out what it is.
>
> How is your memory?  You are spiking to 300 Apache processes (btw, that
> is a bad thing).  Are you running low on memory during that time
> perhaps?  We employ a method of starting MaxClients and keeping them
> running.  There is no reason to not do that.  That ensures you never
> have a process stampede or run out of memory because your have too many
> Apache processes running.  In my experience, the _best_ PHP application
> takes 15MB of memory in an apache process.  So, at 300 processes that is
> 4.5GB or RAM.  And that is the _best_ application.  I have seen some
> (Wordpress, Drupal, others) take 30MB or more.
>
> --
>
> Brian Moon
> Senior Web Engineer
> ------------------------------
> When you care enough to spend the very least.http://dealnews.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/memcached?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to