[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phpug-ie
Subject:    [Phpug] APC/Apache crashing
From:       editor () adnet ! ie (Fergal J Byrne)
Date:       2007-06-29 16:36:28
Message-ID: 4685350C.2070109 () adnet ! ie
[Download RAW message or body]

Michele Neylon wrote:
> Fergal J Byrne wrote:
>> Kae Verens wrote:
>>> Michele Neylon wrote:
>> Can you tell us what kind of app you are running?
>>
> It's irishblogs.info
> 
> The segfaults seem to be coming from APC ie. disabling APC and they
> vanish. Unfortunately disabling APC means that I end up with a server
> load of 160 ....
> 

OK, Michele.  There seems to be some evidence of clashes
between Zend-Optimiser, phpNuke, etc and APC.  Also, scanning
some google returns, you need to make sure you're running
all the latest versions of PHP, Apache 2.2 and APC, otherwise
there's all sorts of issues crashing Apache.

If you are creating a load of 160 without APC then your
code (and possibly your SQL) needs to be optimised by hand.

APC is for giving you a (order) 100% speedup, not saving
you from loads like that.

> It's irishblogs.info

The site is back up now (was a blank page a few minutes
ago).  Have you got tracker code, or an image, on each member
blog?  If so then you are possibly generating deadlocks
by reading from and writing to your database.

I'd suggest cutting the knot.  Service the tracker stuff coming
from the blog websites with something static, and just generate
a log of it.  Every hour process the last hour's logs and update
your tracking stats.  Apart from that it's read-only and should
be a lot easier to manage.

To cut it further, generate your listing pages every hour instead
of on every page request.  The only people who'd be interested in
more frequent stats are bloggers constantly refreshing your
page to see how they're getting on.  This would eliminate that
practice.

Your tracker.php script could be replaced with a static directory
of pages, each of which contains the respective redirect meta tag.
just scan and process the logs once an hour and you've got your
stats.

-- 

Regards,

Fergal Byrne - Technical Director


Adnet: Web Builders to the Design Industry

http://www.adnet.ie/  t:+353 1 855 8951 aim/skype:FergByrne

Adnet Limited. 63 Lower Gardiner Street, Dublin 1, Ireland.
Registered in Ireland No. 229337



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic