APC 在 apache 上加载正常,但数据未保存
我安装了 APC 3.1.5 beta,因为 3.0.19 给了我一些奇怪的错误。
3.1.5 安装正常,它出现在 phpinfo 上并且功能正常工作,没有错误。唯一的问题是数据没有持久保存。
我可以在同一个脚本内执行 apc_store 和 apc_fetch ,并在同一个实例上,它会很好地返回存储的数据,但如果我使用两个实例,其中一个存储,另一个获取,后者将不会返回任何内容,就像密钥不返回一样不存在。
另外使用 apc.php 提供的我得到了以下可能有帮助的信息:
Shared Memory 1 Segment(s) with 32.0 MBytes
(mmap memory, pthread mutex locking)
Uptime 0 minutes
Runtime Settings
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 0
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 1M
apc.mmap_file_mask /tmp/apc.rSmNYe
apc.num_files_hint 1024
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.shm_segments 1
apc.shm_size 32M
apc.slam_defense 1
apc.stat 1
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 0
apc.write_lock 1
Installed using pecl on Apache 2.0.63、PHP 5.3.3、nginx 0.8.46、CentOS 5 64位
有什么想法吗? 谢谢
I installed APC 3.1.5 beta because 3.0.19 gives me some weird error.
3.1.5 is installed fine, it appears on phpinfo and functions work without errors. The only problem is that data is not saved persistantly.
I can do apc_store and apc_fetch inside the same script and on the same instance it will return the stored data fine, but if i use two instance where one stores and the other fetches, the later won't return anything, just like the key doesn't exist.
Also using the apc.php provided i got the following info that may help:
Shared Memory 1 Segment(s) with 32.0 MBytes
(mmap memory, pthread mutex locking)
Uptime 0 minutes
Runtime Settings
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 0
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 1M
apc.mmap_file_mask /tmp/apc.rSmNYe
apc.num_files_hint 1024
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.shm_segments 1
apc.shm_size 32M
apc.slam_defense 1
apc.stat 1
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 0
apc.write_lock 1
Installed using pecl on
Apache 2.0.63, PHP 5.3.3, nginx 0.8.46, CentOS 5 64bit
Any ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保 Zend Optimizer 模块未加载
Make sure Zend Optimizer module is not loaded