【问题标题】:How to find why ZendOPCache is restarting every 1 second?如何找到 ZendOPCache 每 1 秒重启一次的原因?
【发布时间】:2018-03-30 10:07:56
【问题描述】:

在服务器上,我最近从 easyapache 3 迁移到了 easyapache 4,同时我将 PHP 更新到了 5.6。

在这个动作之后,我注意到 OPCache 在这些设置下每 1 秒重新启动一次

consistency checks  0
dups fix    false
enable  true
enable cli  true
enable file override    false
error log   no value
fast shutdown   true
force restart timeout   180
inherited hack  true
interned strings buffer 64
load comments   true
log verbosity level 1
max accelerated files   40000
max file size   0
max wasted percentage   0.4
memory consumption  536870912
optimization level  2147467263
preferred memory model  no value
protect memory  false
revalidate freq 60
revalidate path true
save comments   true
use cwd true
validate permission true
validate root   false
validate timestamps false

有人知道为什么要这样做吗?

【问题讨论】:

    标签: php-5.6 opcache


    【解决方案1】:

    解决方案是让 PHP 处理程序拥有文件夹的组权限。在重新发送权限并将 PHP 处理程序更改为 php-fpm 之后,一切正常。

    【讨论】:

      猜你喜欢
      • 2018-03-01
      • 1970-01-01
      • 2021-07-18
      • 2011-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-23
      相关资源
      最近更新 更多