php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58814 Possible memory leak
Submitted: 2009-08-17 05:37 UTC Modified: 2017-10-24 08:41 UTC
From: dejan dot lekic at gmail dot com Assigned:
Status: Suspended Package: ingres (PECL)
PHP Version: 5.2.6 OS: Linux
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: dejan dot lekic at gmail dot com
New email:
PHP Version: OS:

 

 [2009-08-17 05:37 UTC] dejan dot lekic at gmail dot com
Description:
------------
During the insertion of few millions of rows in a very simple table PHP takes more and more memory. Looks to me like it does not free resources somewhere.

Reproduce code:
---------------
http://codepad.org/hyUlvV3E

Expected result:
----------------
I do not expect PHP to take more than few MB of RAM.

Actual result:
--------------
It took over 2.2 GB (!!!) of RAM after 16 millions of rows have been inserted.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-22 10:23 UTC] jruffer at hss dot co dot uk
Try using ingres_free_result($res).  It may help.
 [2017-10-24 08:41 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 08:41 UTC] kalle@php.net
The ingres package has not had any activity for 4 years, so its safe to say that its no longer in active development, if activity picks backup then the maintainer can re-open this report
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 15 13:01:23 2021 UTC