升级 APC 3.0.19 时出现问题 -> 3.1.4

发布于 2024-09-28 00:45:33 字数 816 浏览 1 评论 0原文

在我使用的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

jJeQQOZ5 2024-10-05 00:45:33

这似乎是一个与 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

怎樣才叫好 2024-10-05 00:45:33

当我仅使用数值设置 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文