php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77223 php-fpm.log:WARNING: failed to acquire scoreboard
Submitted: 2018-11-30 07:37 UTC Modified: 2021-12-12 04:22 UTC
Votes:4
Avg. Score:3.5 ± 1.7
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: 2192200 at qq dot com Assigned: bukka (profile)
Status: No Feedback Package: FPM related
PHP Version: 5.6Git-2018-11-30 (Git) OS: Ubuntu 6.3.0-12ubuntu2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: 2192200 at qq dot com
New email:
PHP Version: OS:

 

 [2018-11-30 07:37 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-30 07:44 UTC] 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;
		}
	}
 [2020-12-09 18:40 UTC] cmb@php.net
-Package: *Configuration Issues +Package: FPM related
 [2021-11-28 21:52 UTC] bukka@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: bukka
 [2021-11-28 21:52 UTC] bukka@php.net
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.
 [2021-12-12 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC