ID:               27758
 Comment by:       technik at perlentaucher dot de
 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:

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


Previous Comments:
------------------------------------------------------------------------

[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

------------------------------------------------------------------------

[2004-04-12 17:56:11] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2004-04-07 05:25:35] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

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

Reply via email to