#34684 [Opn->Fbk]: Memory Leak using Informix database
| From: | sniper@php.net | Date: | Fri, 30 Sep 2005 08:06:36 +0000 |
| Subject: | #34684 [Opn->Fbk]: Memory Leak using Informix database | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85790@lists.php.net to get a copy of this message | ||
ID: 34684
Updated by: sniper@php.net
Reported By: mrembach at gmail dot com
-Status: Open
+Status: Feedback
-Bug Type: *Database Functions
+Bug Type: Informix related
Operating System: Linux 2.4.19-64GB-SMP
PHP Version: 5.0.5
New Comment:
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
And try with a script which does NOT use PEAR::db!!
Previous Comments:
------------------------------------------------------------------------
[2005-09-30 08:33:01] mrembach at gmail dot com
Description:
------------
Hi,
I have had an ongoing memory leak with Informix for a while now and
haven't had another database to test with so I can send in evidence for
investigation.
I have written a small script that created a database connection using
Pear::DB and loads creates a loop to load an array of objects.
To run the command:
php testMemoryLeak.php ORACLE
or
php testMemoryLeak.php INFORMIX
If you run this code (see below) and then issue the command
ps -ax -o '%mem cmd' | grep 'testMemoryLeakPEAR.php' | grep -v 'grep'
On the informix run, the memory goes up and up (try running the program
and see after a couple of minutes), but with the oracle run, no memory
leak.
This should provide enough clues to maybe find the leak and plug it for
informix. Please help, this is starting to be a very big problem for my
project.
Thanks in advance
Michael
Reproduce code:
---------------
https://student.transport.nsw.gov.au/testMemoryLeakPEAR.txt
Expected result:
----------------
The program should be downloaded and set up to use with both a table in
oracle and informix
The ps I explained should be run while the php script is running.
Informix: memory starts at 1.5 and starts going up every minute or so
Oracle: stable.
I think the problem is in the free() class.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34684&edit=1