![PHP-FPM 无法找到或访问状态共享内存](https://linux22.com/image/786244/PHP-FPM%20%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%E6%88%96%E8%AE%BF%E9%97%AE%E7%8A%B6%E6%80%81%E5%85%B1%E4%BA%AB%E5%86%85%E5%AD%98.png)
我在 AWS 云上运行一个繁忙的 magento 2 负载平衡 Web 服务器,该服务器有 3 个后端 PHP-FPM 服务器和一个共享的 EFS 网络文件系统。有很多并发用户,一切运行正常,只是偶尔我会在错误日志中看到以下错误:
May 4 15:27:01 app-node php_fpm_error [04-May-2023 15:27:01] WARNING: [pool pool.name] child 135046 said into stderr: ERROR: scoreboard: failed to lock (already locked)
May 4 15:27:01 app-node php_fpm_error [04-May-2023 15:27:01] WARNING: [pool pool.name] child 135046 said into stderr: ERROR: status: unable to find or access status shared memory
在 Ubuntu 22 LTS 上使用的 PHP 版本是 8.1.18。PHP-FPM 池配置如下:
[pool.name]
pm.status_path = /status
;listen = 127.0.0.1:5001
listen = /run/php-fpm/pool.sock
listen.owner = wwwuser
listen.group = wwwgroup
listen.mode = 0660
user = wwwuser
group = wwwgroup
listen.backlog = 1024
pm = static
pm.max_children = 12
pm.max_requests = 1000
request_terminate_timeout = 0
rlimit_files = 4096
catch_workers_output = yes
security.limit_extensions = .php .phar
我在谷歌上搜索,但没有找到有关这两个错误的任何信息。
请帮忙。谢谢