#25722 [Com]: Performance degrades on every page request when including a large .php file
| From: | rep at devdomain dot com | Date: | Fri, 17 Oct 2003 20:59:39 +0000 |
| Subject: | #25722 [Com]: Performance degrades on every page request when including a large .php file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49157@lists.php.net to get a copy of this message | ||
ID: 25722
Comment by: rep at devdomain dot com
Reported By: j dot spit at uptime dot nl
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Gentoo Linux 2.4.21
PHP Version: 5CVS-2003-10-01 (dev)
New Comment:
Update:
I've compiled today's snapshot and it appears that the slowdown is
gone.
Previous Comments:
------------------------------------------------------------------------
[2003-10-07 18:22:02] rep at devdomain dot com
I was just submitting this bug when your excellent pre-post script
matched this similar one.
I'm not using ADODB, but I'm using SMARTY, that is itself quite a huge
piece of include.
I'm using a late CVS version too. If I do a "service httpd restart",
rendering goes back to the fast lane, but not for too long.
It seems that performance degrades as PHP serves pages, but the restart
remedy indicates a memory problem...
------------------------------------------------------------------------
[2003-10-01 17:29:23] j dot spit at uptime dot nl
Description:
------------
I'm using PHP ADODB in my application, using the latest PHP5 from cvs I
get a performance problem. Consider a .php file where I include the
file adodb.inc.php. Using my browser I go to my test page. Now on every
page reload, I see apache consume more and more cpu, and I see that the
page render time consistently increasing. This looks like some kind of
memory problem to me. Please note that the AdoDB include file is over
100kb, I haven't seen this behaviour with smaller include files.
I tried different Adodb versions and switched between Apache 1 & 2, to
no avail.
PHP5b1 does not have this problem.
Reproduce code:
---------------
<?
$mtime = microtime();
$mtime = explode( " ", $mtime );
$start = $mtime[1] + $mtime[0];
include_once( 'adodb.inc.php' );
$mtime = microtime();
$mtime = explode( " ", $mtime );
$end = $mtime[1] + $mtime[0];
echo $end - $start;
?>
Expected result:
----------------
Press refresh several times, you will see performance degrade and an
execution time rise.
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25722&edit=1