什么是fpm错误日志中的php-fpm警告“未能获得记分牌”?以及如何解决它?
tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 03:40:39] WARNING: failed to acquire scoreboard [08-Oct-2014 03:42:54] WARNING: failed to acquire scoreboard [08-Oct-2014 03:47:01] WARNING: failed to acquire scoreboard
用例:
php版本5.4.25
php-fpm实例说’pf-9000’连接到第二个php-fpm实例,在同一台服务器上用fastcgi协议说’pf-9005′.
这两个php-fpm实例都可以看到错误.
请求流程:
web client -> nginx -> pf-9000 -> pf-9005
响应流程:
pf-9005 -> pf-9000 -> nginx -> web client
从
Stack Overflow的回答:
A scoreboard is a structure that holds the state of the FPM pool and its worker threads. It’s created in shared memory,and if that memory can’t be allocated,an error is logged.
这个答案也指source code引发错误的地方.
怎么解决?
首先,给sysctl一个关于内存限制的看法:
How to/configure shared memory
sysctl -a | grep -E "shmall|shmmax"
要么
ipcs -lm
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。