ID: 27758
Updated by: jacques@php.net
Reported By: tingle at virtuanews dot co dot uk
Status: Closed
Bug Type: Performance problem
Operating System: Windows 2000 SP4
PHP Version: 5CVS-2004-03-29 (dev)
New Comment:
Can you try testing with either of the following release candidates?
http://snaps.php.net/~andi/php-5.0.0RC3RC2.tar.bz2
or
http://snaps.php.net/~andi/php-5.0.0RC3RC2.tar.gz
Previous Comments:
------------------------------------------------------------------------
[2004-06-03 11:56:30] edink@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2004-05-27 11:37:58] marek at lewczuk dot com
It is still not working. Right now I'm using Apache 2.0.48 and latest
PHP5 build (20040527). It is really annoying - I have to reset apache
every 5 minutes, because after each loaded page apache's memory usage
is growing. It seems that memory used by PHP (or by php output buffer)
isn't reset when page has been loaded. It is really annoying bug...
------------------------------------------------------------------------
[2004-05-25 14:46:14] marek at lewczuk dot com
I have the same problem - Apache 2.0.48 + latest PHP5.
------------------------------------------------------------------------
[2004-05-13 17:12:30] technik at perlentaucher dot de
Same Problem here. System is :
Apache 2.0.48 on Gentoo, using latest snapshot of PHP5
( php5-200405131230 )
Memory Leak happens while running following code :
<html><body><?php
for ( $x=0; $x<600; $x++ ) {
$db = mysql_connect("localhost", "user", "password");
mysql_select_db("database");
$sql = "select * from tab"; // About 17.000 Big Records
$result = mysql_query($sql); // !!! causes MEM-Leak !!!
mysql_close($db);
}
?></body></html>
Mem-Leak differs in Size. When reducing load eg. by making the loop
smaller it disapears sometime.
It happens at the Point where the Data ist loaded into the
result-Array.
Greetings,
Adam
------------------------------------------------------------------------
[2004-05-07 18:40:00] ppmm at wuxinan dot net
Try to use Apache 2.0.48. I have exactly the same problem on the same
platform. But when I go back to the older version of Apache, the
problem no long exists.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27758--
Edit this bug report at http://bugs.php.net/?id=27758&edit=1