Re: PHP Performance problem after upgrade to 5.1.6 or 5.2.0



Alexandre Biancalana wrote:

Miroslav Lachman wrote:

Hi all,

I have performance problem with PHP after upgrading from PHP 5.1.4 to newer version regardles if newer version is 5.1.6 or 5.2.0. I tested both with same result.
I have two same servers (IBM x336 with dual Xeon 3GHz and 2GB RAM) serving one webapplication (loadbalancing). Both machines are running FreeBSD 6.0 SMP + Apache 2.0.59. If both machines have PHP 5.1.4, everything is fine and load is about 1.5 (Apache is running 16-20 childs).
After upgrade to PHP 5.1.6 or 5.2.0, performance goes down - average load is about 3-5 with peaks at 12-40 (in this peaks Apache starts to run more childs, sometimes to MaxClients).
Both machines are serving identical content with same requests per second, both versions of PHP are compiled from ports with same options.
Both have in loader.conf:
accf_data_load="YES"
accf_http_load="YES"


First of all you should upgrade the FreeBSD to 6.2-STABLE, since this has a LOT of improvements in the overall system. I would recommend you to disable HT too.

Yes, you are right, this is the last project, where I have 6.0, but I have not spare machine to do some testing with 6.2 for this type of usage. Those two are in production and if I turn off one of them, the second can't survive the load. ;o(
I can't risk that result would be worse than is.
And even if your are right, the problem it self is in PHP version upgrade...

Miroslav Lachman
_______________________________________________
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: Problem with loading PHP extensions modules (Raw Hide)
    ... > After upgrading my RH 8 box with some packages from Raw Hide, PHP cannot ... > load any module. ...
    (RedHat)
  • Re: Performance impact of "require"ing lots of source?
    ... The problem is is that it seems that PHP requires the class ... pretty much every class definition in my project on every page, ... I'm concerned about the performance impact this is going to have due ... Are you observing a performance problem. ...
    (comp.lang.php)
  • Re: include_once/__autoload/namespace emulation ...
    ... ".inc.php"; if(file_exists($load)) else { ... I've read that there is a performance problem with __autoload - has that been taken care of? ... I really wish the php guys would just implement at least class level namespaces. ...
    (comp.lang.php)
  • Apache2+PHP 4.3.8
    ... I have a performance problem with this configuration: ... Every PHP page is generated in a very little time, ... wierd configurations of Apache? ...
    (comp.lang.php)
  • Re: PHP Performance problem after upgrade to 5.1.6 or 5.2.0
    ... I have performance problem with PHP after upgrading from PHP 5.1.4 to newer version regardles if newer version is 5.1.6 or 5.2.0. ... After upgrade to PHP 5.1.6 or 5.2.0, performance goes down - average load is about 3-5 with peaks at 12-40 (in this peaks Apache starts to run more childs, sometimes to MaxClients). ...
    (freebsd-performance)