|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57794 apc_cache_info do a Allowed memory size of xx bytes exhausted when a lot of key
Submitted: 2007-08-22 04:40 UTC Modified: 2007-09-18 18:38 UTC
From: ludo at ankama dot com Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 5.2.1 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 - 8 = ?
Subscribe to this entry?

 [2007-08-22 04:40 UTC] ludo at ankama dot com
Hi !

I have a trouble with APC (3.014, php 5.23, FreeBSD) 

When i have a lot of key in the cache user
I can't list the key with apc_cache_info
I try to raise the memoty limit but with 32M, I still can't have the keys.

Cache Size : 200M
Cache Segment : 1
Cache Used when it begin to fail : 80M

Before the update from 3.0.12 (php 5.14) to 3.0.14, the default config of memory (8M) and the same data in the cache don't failed

Is It possible that this function use too many memory on the 3.0.14 update ?

Reproduce code:

Expected result:
the list of the user key

Actual result:
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-18 18:38 UTC]
It's unlikely that the memory usage increased substantially.  It's usually the case that you are close to a limit and then you go over it when something small changes.  I would suggest using the "limited" flag if you don't need every element and upping your memory limit.

If you think you're seeing a significant memory increase providing a stand alone test script that we could compare versions/memory usage with would enable us to help resolve any problems you might be having.  (going ahead and marking this "bogus" unless you respond back stating that you have a significant memory increase).  -Thanks
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 05:01:27 2024 UTC