ID: 27758 Comment by: a12345 at rogers dot com 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:
I am having the issue of high memory usage, I can resolve it with the restart of Apache server My configuration: WinXP Pro Apache 2.0.49 PHP 5.0RC3 MySQL 4.0.18 Previous Comments: ------------------------------------------------------------------------ [2004-06-03 12:00:13] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2004-06-03 11:56:30] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ 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