PHP APC 正常运行时间问题

发布于 2024-08-18 08:33:08 字数 567 浏览 5 评论 0原文

我在 LAMP 上使用 替代 PHP 缓存 (APC)。它工作得很好,直到昨天我更新了网站并更改了一些 MySQL 查询(我不 我不知道它会如何影响 APC 操作码缓存。)

今天我发现服务器上的负载增加了,并且我在替代 PHP 缓存中看到,APC 的正常运行时间约为 15 分钟,然后它重新启动。

此时,APC 缓存仅占可用 30 MB 的大约 20%。仅用于操作码缓存。在这 15 分钟内,缓存运行良好(99.8% 缓存命中)。在这次不必要的重启之后,APC 缓存为空。为什么会重启?我在哪里可以找到它的日志?

I am on LAMP with Alternative PHP Cache (APC). It worked fine until yesterday when I updated the website and changed a few MySQL queries (I don't see how it would affect the APC opcode cache.)

Today I see that the load has increased on the server and I see in Alternative PHP Cache, that the uptime of APC is somewhere around 15 minutes and then it gets restarted.

At this point the APC cache is only about 20% full of the available 30 MB. Using for opcode cache only. During this 15 minutes the cache works fine (99,8% cache hits). After this unwanted restart the APC cache is empty. Why is it restarting? Where can I find the logs for it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

薯片软お妹 2024-08-25 08:33:08

正是 cPanel 更新导致 Apache 每 15 分钟正常重启一次。

It was a cPanel update that caused Apache to restart gracefully every 15 minutes.

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