From:             ericb at sysdump dot com
Operating system: FC4
PHP version:      4.4.1
PHP Bug Type:     Apache related
Bug description:  4.4.1 Extremely slow performance when compiled as static 
Apache 1 module

Description:
------------
Compiling PHP 4.4.1 into Apache 1.3.34 as a static module results in slow
performace. Compiling PHP as an Apache shared module results in expected
performance. Here is the relevant compile script for PHP:

Slow performance (static module):
./configure --enable-track-vars --enable-calendar --with-calendar=shared
--enable-magic-quotes --enable-trans-sid --enable-ftp --enable-inlin
e-optimization --enable-memory-limit --with-gd --with-zlib
--enable-gd-native-tt --with-png-dir --with-openssl --with-curl
--enable-bcmath --
with-gettext --with-gmp --with-gd --with-png-dir --with-jpeg-dir
--enable-gd-native-ttf --with-mysql=/usr/local/mysql --with-flatfile
--with-
gnu-ld --with-mhash --with-mcrypt=/usr/local/lib
--with-mysql-dir=/usr/local/mysql --disable-debug --enable-sysvsem
--enable-sysvshm --with-apache=../apache_1.3.34

When compiled with the following performance is returned to normal (shared
module):

./configure --enable-track-vars --enable-calendar --with-calendar=shared
--enable-magic-quotes --enable-trans-sid --enable-ftp --enable-inlin
e-optimization --enable-memory-limit --with-gd --with-zlib
--enable-gd-native-tt --with-png-dir --with-openssl --with-curl
--enable-bcmath --
with-gettext --with-gmp --with-gd --with-png-dir --with-jpeg-dir
--enable-gd-native-ttf --with-mysql=/usr/local/mysql --with-flatfile
--with-
gnu-ld --with-mhash --with-mcrypt=/usr/local/lib
--with-mysql-dir=/usr/local/mysql --disable-debug --enable-sysvsem
--enable-sysvshm --with-a
pxs=/usr/local/apache/bin/apxs

This is on a quad Xeon Dell 6850 with 6GB of memory. Some pages would not
load (timeout) and others were approximately 5-10 times slower to load
before we moved to PHP as a shared module. Zend optimizer was On. 


-- 
Edit bug report at http://bugs.php.net/?id=35591&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35591&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35591&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35591&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35591&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35591&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35591&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35591&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35591&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35591&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35591&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35591&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35591&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35591&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35591&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35591&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35591&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35591&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35591&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35591&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35591&r=mysqlcfg

Reply via email to