Re: PHP Performance problem after upgrade to 5.1.6 or 5.2.0



* Miroslav Lachman (000.fbsd@xxxxxxx) 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/
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Newbie zend license question
    ... Just imagining a confrontational situation where Zend is ... PHP dead in the water? ... If a new version of Zend is released by new owner, the PHP developers ... > without the Zend engine (unless for some reason you've found a way to ...
    (comp.lang.php)
  • Re: Roadsend compiler
    ... >>Wrong, Zend does not have a real PHP compiler product now, which what ... Roadsend compiles PHP into machine code executable binaries ... the real PHP speed execution improvements by Zend seem to have ...
    (alt.php)
  • Re: Classes vs functions
    ... I do cache objects once loaded, ... I do not really understand the implications either, the php documentation is ... not clear about what happens with chains of references, ... the php engine sometimes looses track too :-. ...
    (comp.lang.php)
  • Re: protecting my script from being shared
    ... >> can just hack the decoder to spit out the source. ... The Zend Encoder produced an encrypted bytecode that can't be ... Does the Zend decoder require PHP? ...
    (comp.lang.php)
  • Re: include_once() within a function
    ... > used by the script, so instead of using include or include_once in the ... static $cache; ... Just declaring them static with no check wether they are allready set would not have the desired effect. ...
    (comp.lang.php)