Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2007 20:54:51 +0000
From:      Thomas Hurst <tom.hurst@clara.net>
To:        freebsd-performance@freebsd.org
Subject:   Re: PHP Performance problem after upgrade to 5.1.6 or 5.2.0
Message-ID:  <20070203205451.GA65239@voi.aagh.net>
In-Reply-To: <45C4E528.8000302@quip.cz>
References:  <45C47D49.4040101@quip.cz> <20070203190410.GA56203@voi.aagh.net> <45C4E528.8000302@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
* Miroslav Lachman (000.fbsd@quip.cz) wrote:

> I am not using any PHP bytecode cache.

Well, if you used one perhaps you'd have enough power to be N+1, not
just N going on N-1 ;)

> About one year ago I tried eAccelerator which causes Apache freeze.

Are you using a threaded MPM?  Try using prefork, or worker with
mod_fastcgi/mod_fcgid and PHP compiled WITH_FASTCGI.

> Now I installed ZendOptimizer and load increased!! by 50% :o(

I've never used it, but I gather Zend Optimizer is just an optimizer,
not a bytecode cache; without one it will be increasing the cost of
compilation (which will still happen each request) and you'd expect load
to increase, unless your PHP was very optimizable and ineffecient.  Zend
probably expect you to use it with commercial pre-compiled PHP apps, or
as part of Zend Platform, which does include a cache.

Personally I wouldn't bother; if eAccelerator still doesn't work, try
Alternative PHP Cache (APC) or XCache.

-- 
Thomas 'Freaky' Hurst
    http://hur.st/



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