From: quip at quip dot cz Operating system: FreeBSD 6.0 PHP version: 5.1.6 PHP Bug Type: Performance problem Bug description: performance is much slower after upgrade
Description: ------------ After security upgrade from 5.1.4 to 5.1.6 on the production server, we have performance problems. CPU load was about 0.6 - 1 with version 5.1.4, but after ugprade to 5.1.6, load is from 1.5 - 3 and Apache somtimes starts forking too many childs. If we downgrade back to 5.1.4, load goes back to 0.6 - 1. Reproduce code: --------------- FreeBSD 6.0-STABLE SMP (Dual Xeon 3GHz with HTT + 2GB RAM) Apache 2.0.59 PHP5 5.1.6 Installed PHP extensions: php5-5.1.6 php5-bz2-5.1.6 php5-curl-5.1.6 php5-dom-5.1.6 php5-exif-5.1.6 php5-extensions-1.0 php5-ftp-5.1.6 php5-gd-5.1.6 php5-iconv-5.1.6 php5-mbstring-5.1.6 php5-mhash-5.1.6 php5-mysql-5.1.6 php5-mysqli-5.1.6 php5-openssl-5.1.6 php5-pcre-5.1.6 php5-posix-5.1.6 php5-session-5.1.6 php5-snmp-5.1.6 php5-sockets-5.1.6 php5-sysvmsg-5.1.6 php5-sysvsem-5.1.6 php5-sysvshm-5.1.6 php5-xml-5.1.6 php5-xmlreader-5.1.6 php5-xmlrpc-5.1.6 php5-xmlwriter-5.1.6 php5-zlib-5.1.6 pecl-PDO-1.0.3 pecl-PDO_MYSQL-1.0.1 pecl-zip-1.7.0 Expected result: ---------------- I expect same performance as with 5.1.4 Actual result: -------------- The result is that webaplication (custom CMS) became unresponsive under heavy load. Normaly Apache runs with about 20 childs, but from time to time (1 - 10 times per day) Apache starts forking new childs until MaxClients limit is reached, then is restarted by "watchdog script". There was not this type of problem until upgrade to 5.1.6 2 same servers are running only Apache and one virtual host (loadbalanced) with one webapplication, database is on the third machine, so there is no "hidden" things causing this load. Let me know if I can do/post more to find source of this performance problem. -- Edit bug report at http://bugs.php.net/?id=38940&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38940&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38940&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38940&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38940&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38940&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38940&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38940&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38940&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38940&r=support Expected behavior: http://bugs.php.net/fix.php?id=38940&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38940&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38940&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38940&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38940&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38940&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38940&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38940&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38940&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38940&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38940&r=mysqlcfg