Bug #77223 [Opn->Fbk]: php-fpm.log:WARNING: failed to acquire scoreboard
| From: | bukka@php.net | Date: | Sun, 28 Nov 2021 21:52:39 +0000 |
| Subject: | Bug #77223 [Opn->Fbk]: php-fpm.log:WARNING: failed to acquire scoreboard | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-238028@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77223&edit=1
ID: 77223
Updated by: bukka@php.net
Reported by: 2192200 at qq dot com
Summary: php-fpm.log:WARNING: failed to acquire scoreboard
-Status: Open
+Status: Feedback
Type: Bug
Package: FPM related
Operating System: Ubuntu 6.3.0-12ubuntu2
PHP Version: 5.6Git-2018-11-30 (Git)
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
This happen if tries to get scoreboard for the killed children. The script was probably terminated
for some reason but it's not clear from this report what it could cause. This needs more info.
Previous Comments:
------------------------------------------------------------------------
[2018-11-30 07:44:02] 2192200 at qq dot com
void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *now, int
terminate_timeout, int slowlog_timeout) /* {{{ */
{
struct fpm_scoreboard_proc_s proc, *proc_p;
proc_p = fpm_scoreboard_proc_acquire(child->wp->scoreboard, child->scoreboard_i, 1);
if (!proc_p) {
zlog(ZLOG_WARNING, "failed to acquire scoreboard");
return;
}
proc = *proc_p;
fpm_scoreboard_proc_release(proc_p);
#if HAVE_FPM_TRACE
if (child->slow_logged.tv_sec) {
if (child->slow_logged.tv_sec != proc.accepted.tv_sec || child->slow_logged.tv_usec !=
proc.accepted.tv_usec) {
child->slow_logged.tv_sec = 0;
child->slow_logged.tv_usec = 0;
}
}
------------------------------------------------------------------------
[2018-11-30 07:37:16] 2192200 at qq dot com
Description:
------------
Open php-fpm.conf, slowlog = /data/weblog/php/$pool.log.slow, in the php-fpm.log will appear
WARNING: failed to acquire scoreboard, close slowlog, it is normal.
The php process will die, reload can't be pulled, you must use restart.
Optimized by xhprof and kernel.shmmax and kernel.shmall kernel, not shared memory issues.
php-version:PHP 5.6.36 (cli) (built: Jun 21 2018 10:42:06)
Test script:
---------------
php-fpm.conf:
slowlog = /data/weblog/php/$pool.log.slow
php-fpm.log:
[23-Nov-2018 20:46:20] WARNING: failed to acquire scoreboard
[23-Nov-2018 23:51:43] WARNING: failed to acquire scoreboard
[24-Nov-2018 00:05:04] WARNING: failed to acquire scoreboard
[24-Nov-2018 01:40:56] WARNING: failed to acquire scoreboard
[24-Nov-2018 04:57:59] WARNING: failed to acquire scoreboard
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77223&edit=1