php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8889 Memory is not being freed.
Submitted: 2001-01-24 13:21 UTC Modified: 2001-06-21 16:30 UTC
From: brian at phorum dot org Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.4 OS: RH 7
Private report: No CVE-ID: None
 [2001-01-24 13:21 UTC] brian at phorum dot org
Hi guys,

I do not have much information.  I know that my Apache processes memory is growing by the minute.  If I start a separate server on another port and serve only static pages and files through it, those process do not grow.

I have tried what I remembered of gdb but have not come up with anything.  I know I need to attach to a process and it seems I can `gdb {pid}` but that gives me nothing.  How can I get some info for you guys?  I do have --enable-debug.

thanks,

Brian.
Phorum.org

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-26 18:45 UTC] brian at phorum dot org
Ok, this is just like what is described in http://marc.theaimsgroup.com/?l=php-dev&m=97923602322593&w=2 which contains a hacked up solution.  It looks like it should be able to turn into a usable end solution.
 [2001-04-29 19:59 UTC] zeev@php.net
What kind of sizes are we talking about here?  the Zend memory manager holds a memory cache, but we're talking at around 1MB per process max.
 [2001-04-30 14:31 UTC] brian at phorum dot org
I am talking about nearly endless amounts.  I saw Apache processes with as much as 14MB of memory in use.

Brian.
 [2001-05-01 03:01 UTC] andi@php.net
The main problem is that once the system's standard C library allocates heap space (with the sbrk() system call) it will never return that memory to the system.
PHP can't solve this problem. If you do find certain things in the future which take up much more memory than they should please open a new bug report and we will check into it.
 [2001-06-21 16:30 UTC] brianlmoon@php.net
This is all fixed in 4.0.6.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC