#50820 [Opn->Fbk]: mysqli Active Links memory leak
| From: | jani@php.net | Date: | Fri, 22 Jan 2010 09:00:32 +0000 |
| Subject: | #50820 [Opn->Fbk]: mysqli Active Links memory leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-146864@lists.php.net to get a copy of this message | ||
ID: 50820
Updated by: jani@php.net
Reported By: mat999 at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: MySQLi related
Operating System: Debian Lenny / Linux
PHP Version: 5.3.1
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2010-01-22 07:05:46] mat999 at gmail dot com
Description:
------------
System
- mod_fastcgi. 1 process x 35 child php threads
- PHP 5.3.1 dotdeb package
- Mysqlnd
Active Links increases throught the running of the server, for one it
is greater than the number of threads so there obviously is a leak.
PHPInfo: http://thewarezscene.org/phpinfo.php
Reproduce code:
---------------
<?
$db = mysqi_connect(....);
echo 'test';
mysqli_close($db);
?>
Open script a few thousand times and take a look at phpinfo()
Expected result:
----------------
Active Links = 0;
Actual result:
--------------
Active Links = XXXX;
http://thewarezscene.org/phpinfo.php
^ I have to kill all processes every 3 hours to keep the number down
and hence the memory usage.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50820&edit=1