php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34684 Memory Leak using Informix database
Submitted: 2005-09-30 08:33 UTC Modified: 2005-10-08 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mrembach at gmail dot com Assigned:
Status: No Feedback Package: Informix related
PHP Version: 5.0.5 OS: Linux 2.4.19-64GB-SMP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mrembach at gmail dot com
New email:
PHP Version: OS:

 

 [2005-09-30 08:33 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-30 10:06 UTC] sniper@php.net
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!!

 [2005-10-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 21:01:29 2024 UTC