ID: 27758 Comment by: marek at lewczuk dot com Reported By: tingle at virtuanews dot co dot uk Status: Open Bug Type: Performance problem Operating System: Windows 2000 SP4 PHP Version: 5CVS-2004-03-29 (dev) New Comment:
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... Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2004-05-03 20:53:00] jpleveille at gameloft dot com I noticed that on the RC2. Is that fixed? I got memory usage increased of 1 to 8 megabytes sometimes. Have to reload Apache every 10 minutes sometimes, annoying! JP. ------------------------------------------------------------------------ [2004-04-18 10:35:57] tingle at virtuanews dot co dot uk Hi, Sorry for the delay - I was not in a position to download the latest CVS due to a very slow web connection, this has now changed and I have just downloaded the latest file. The problem is now MUCH better, but is still there slightly, where as before it would increase with about 500KB each refresh, it does it by about 50KB each time. It is not as bad, but it is still there ------------------------------------------------------------------------ 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