php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59854 Unable to allocate memory for pool
Submitted: 2011-07-18 00:47 UTC Modified: 2016-11-18 21:38 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: hillbun at gmail dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.17 OS: centos 5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-07-18 00:47 UTC] hillbun at gmail dot com
Description:
------------
After APC running for sometime, after some cache rotate, it reports "Unable to allocate memory for pool."

php.ini:

[APC]
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20060613
extension = apc.so
apc.enabled = 0
apc.shm_segments = 1
apc.shm_size = 1024M
apc.optimization = 1
apc.num_files_hint = 0
apc.ttl = 7200
apc.user_ttl = 7200
apc.gc_ttl = 7200
apc.write_lock = 1
apc.rfc1867 = On
apc.cache_by_default = on
apc.num_files_hint = 1024000
apc.mmap_file_mask =
apc.enable_cli = 1
apc.slam_defense = off
apc.num_files_hint = 5120
apc.user_entries_hint = 102400
apc.mmap_file_mask = /dev/zero








Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-21 10:25 UTC] skolesnyk at gmail dot com
With apc.enabled = 0 I think apc isn't actually running.

As for your problem, try setting apc.ttl=0
 [2011-07-26 09:25 UTC] hillbun at gmail dot com
apc.enabled = 1
setting apc.ttl = 0

it is ok to APC cac he rotate now.

but when apc enabled, I can not login zencart admin panel anymore, how to solve it?
 [2016-11-18 21:38 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:38 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 02:01:23 2020 UTC