php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35591 4.4.1 Extremely slow performance when compiled as static Apache 1 module
Submitted: 2005-12-07 23:59 UTC Modified: 2005-12-16 01:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: ericb at sysdump dot com Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.4.1 OS: FC4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 + 30 = ?
Subscribe to this entry?

 
 [2005-12-07 23:59 UTC] 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. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-08 10:52 UTC] tony2001@php.net
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.



 [2005-12-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC