#35591 [Opn->Fbk]: 4.4.1 Extremely slow performance when compiled as static Apache 1 module
ID: 35591
Updated by: tony2001@php.net
Reported By: ericb at sysdump dot com
-Status: Open
+Status: Feedback
Bug Type: Apache related
Operating System: FC4
PHP Version: 4.4.1
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-12-07 23:59:18] ericb at sysdump dot com
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 this bug report at http://bugs.php.net/?id=35591&edit=1
Thread (2 messages)