-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.4 wrong fpmstatus output #16932
Comments
We might need a bit more to understand if the issue is relevant, i.e. configuration, how the logs look ... |
This is in
No errors in logs. It kind of behaves like processes are overriding current stats: https://github.com/user-attachments/assets/61aab54b-2d25-45c7-b0d7-7562b8aaef2b There is no such issue on PHP 8.3 |
Possibly this PR #14153 php-src/sapi/fpm/fpm/fpm_request.c Line 204 in ba6c005
This is calling FPM_SCOREBOARD_ACTION_SET at the end of the request with all stats set to 0, the unmodified stats should be set as -1 so either don't set the values --- fpm_scoreboard_update_commit(0, 0, 0, 0, 0, 0, 0, proc->memory, FPM_SCOREBOARD_ACTION_SET, NULL);
+++ fpm_scoreboard_update_commit(-1, -1, -1, -1, -1, -1, -1, proc->memory, FPM_SCOREBOARD_ACTION_SET, NULL); or INC vs SET --- fpm_scoreboard_update_commit(0, 0, 0, 0, 0, 0, 0, proc->memory, FPM_SCOREBOARD_ACTION_SET, NULL);
+++ fpm_scoreboard_update_commit(0, 0, 0, 0, 0, 0, 0, proc->memory, FPM_SCOREBOARD_ACTION_INC, NULL); |
Looking at php-src/sapi/fpm/fpm/fpm_scoreboard.c Lines 100 to 177 in afa08b5
|
Description
fpmstatus seems to return wrong values, sample
accepted conn
not incresing, even decreasing, e.g. shows 3 after refreshing it shows 1 againidle processes
,active processes
,idle processes
: in this example there 15 running fpm processes in totalPHP Version
8.4.1
Operating System
No response
The text was updated successfully, but these errors were encountered: