php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56890 memory leaks reported when restarting Apache2
Submitted: 2006-03-14 11:56 UTC Modified: 2008-01-30 03:32 UTC
From: tssajo at hotmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.1 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tssajo at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-03-14 11:56 UTC] tssajo at hotmail dot com
Description:
------------
Just installed APC 3.0.10  Operating system is FreeBSD 5.4 with Apache 2.0.55  These scripts do not have any classes at all still my Apahce error log file gets filled up with memory leak reports when restarting Apache2.


Actual result:
--------------
[Tue Mar 14 08:44:54 2006]  Script:  '/home/sites/www.XXXX.com/web/index.php'
/usr/ports/www/pecl-APC/work/APC-3.0.10/apc_compile.c(1830) :  Freeing 0x08806824 (140 bytes), script=/home/sites/www.XXXX.com/web/index.php
Last leak repeated 52 times
=== Total 53 memory leaks detected ===


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-16 03:44 UTC] gopalv82 at yahoo dot com
Is probably not a real memory leak and is just the zend memory manager complaining about having to cleanup after APC.

Sad to say, this is to be expected in most cases as APC cannot divine when the class is ready to be thrown away from local memory and keeping track of all such memory allocated in extension land is pointless when zend mem allocator already does that albiet with warnings.
 [2006-03-16 04:41 UTC] tssajo at hotmail dot com
Thanks for your reply. But as I already said, in this code there are NO CLASSES at all. Not one. Everything is "basic" php code, with a bunch of global variables. No classes, no OO code in this one at all. Do you think that the explanation you outlined still account for these "memory leaks"?
 [2008-01-29 20:23 UTC] shire@php.net
Like gopal says this really isn't a big deal, but if you can give me a super simple repro of this and verify it works on the latest release I can probably take a look at it.  -thx
 [2008-01-30 03:32 UTC] tssajo at hotmail dot com
Thanks, but this problem is long gone. I use Apache 2.2 and APC 3.0.16 now, there are no more memory leaks reported in the log files.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 04:01:32 2024 UTC