升级 APC 3.0.19 时出现问题 -> 3.1.4
在我使用的 gentoo Linux 服务器上,我刚刚将 APC 从 3.0.19 升级到 3.1.4,但似乎有些东西无法正常工作。看起来好像应该删除的缓存条目(显式删除或通过 TTL 过期)保留在原位,因此缓存使用量不断增长,直到达到最大使用内存,然后服务器变得非常慢。
有没有人有这方面的升级经验?
谢谢
这是我的 apc.ini
extension=apc.so
apc.enabled="1"
apc.shm_segments="1"
apc.shm_size="1536"
apc.num_files_hint="2500"
apc.ttl="7200"
apc.user_ttl="86400"
apc.gc_ttl="3600"
apc.cache_by_default="1"
;apc.filters=""
;apc.mmap_file_mask="/tmp/apcphp5.XXXXXX"
apc.slam_defense="0"
apc.file_update_protection="2"
apc.enable_cli="1"
apc.max_file_size="5M"
apc.stat="0"
apc.write_lock="1"
apc.report_autofilter="0"
apc.include_once_override="0"
apc.rfc1867="0"
apc.rfc1867_prefix="upload_"
apc.rfc1867_name="APC_UPLOAD_PROGRESS"
apc.rfc1867_freq="0"
apc.localcache="0"
apc.localcache.size="512"
apc.coredump_unmap="0"
On the gentoo Linux server I use, I've just upgraded APC from 3.0.19 to 3.1.4 and it appears as if something is not working properly there. It appears as if cache entries which should have been deleted (either explicitly or via TTL expiry) stay in place and so cache use keeps growing until it reaches the max usage memory and then the server becomes extremely slow.
Anyone with some experience on this upgrade?
Thanks
Here's my apc.ini
extension=apc.so
apc.enabled="1"
apc.shm_segments="1"
apc.shm_size="1536"
apc.num_files_hint="2500"
apc.ttl="7200"
apc.user_ttl="86400"
apc.gc_ttl="3600"
apc.cache_by_default="1"
;apc.filters=""
;apc.mmap_file_mask="/tmp/apcphp5.XXXXXX"
apc.slam_defense="0"
apc.file_update_protection="2"
apc.enable_cli="1"
apc.max_file_size="5M"
apc.stat="0"
apc.write_lock="1"
apc.report_autofilter="0"
apc.include_once_override="0"
apc.rfc1867="0"
apc.rfc1867_prefix="upload_"
apc.rfc1867_name="APC_UPLOAD_PROGRESS"
apc.rfc1867_freq="0"
apc.localcache="0"
apc.localcache.size="512"
apc.coredump_unmap="0"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这似乎是一个与 Gentoo linux 相关的错误。我已在 http://bugs.gentoo.org/show_bug.cgi?id 上报告了该问题=343485 并已针对 APC 3.1.5 进行修复
This was seemingly a Gentoo linux related bug. I've reported it on http://bugs.gentoo.org/show_bug.cgi?id=343485 and it's been fixed for APC 3.1.5
当我仅使用数值设置 apc.shm_size 时,我在 APC 3.1.5 中遇到了问题。
试试
apc.shm_size="1536M"
,也许有帮助(文档也使用这个公式)I had problem with APC 3.1.5 when I set the apc.shm_size with only the numeric value.
Try out
apc.shm_size="1536M"
, maybe it helps (the default value in the documentation also uses this formula)