PHP Performance problem after upgrade to 5.1.6 or 5.2.0

Thomas Hurst tom.hurst at clara.net
Sat Feb 3 20:55:01 UTC 2007


* Miroslav Lachman (000.fbsd at 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/


More information about the freebsd-performance mailing list