有busy状态的进程,但PID不停的变化,如何定位问题

changepll

问题描述

通过php start.php status 命令能看到有busy状态的进程,但每次 php start.php status时. 两个busy的进程不停地变化. 无法按照手册去定位发现问题

workerman.log中的报错


2022-11-17 16:51:19 pid:3128511 Worker[3128511] process terminated
2022-11-17 16:51:19 pid:3128512 Worker[3128512] process terminated
2022-11-17 16:51:20 pid:3025651 worker[webman:3128511] exit with status 65280
2022-11-17 16:51:20 pid:3025651 worker[webman:3128512] exit with status 65280
2022-11-17 16:51:20 pid:3128515 Worker[3128515] process terminated
2022-11-17 16:51:20 pid:3128516 Worker[3128516] process terminated
2022-11-17 16:51:21 pid:3025651 worker[webman:3128515] exit with status 65280
2022-11-17 16:51:21 pid:3025651 worker[webman:3128516] exit with status 65280
2022-11-17 16:51:21 pid:3128519 Worker[3128519] process terminated
2022-11-17 16:51:21 pid:3128520 Worker[3128520] process terminated
2022-11-17 16:51:22 pid:3025651 worker[webman:3128519] exit with status 65280
2022-11-17 16:51:22 pid:3025651 worker[webman:3128520] exit with status 65280
2022-11-17 16:51:22 pid:3128527 Worker[3128527] process terminated
2022-11-17 16:51:22 pid:3128528 Worker[3128528] process terminated
2022-11-17 16:51:23 pid:3025651 worker[webman:3128527] exit with status 65280
2022-11-17 16:51:23 pid:3025651 worker[webman:3128528] exit with status 65280
2022-11-17 16:51:23 pid:3128531 Worker[3128531] process terminated
2022-11-17 16:51:23 pid:3128532 Worker[3128532] process terminated

php start.php status 中显示的busy进程. 他的pid一直在变.每次都不一样

Workerman version:4.0.30          PHP version:8.1.7
start time:2022-11-16 22:04:59   run 0 days 18 hours
load average: 0, 0, 0            event-loop:\Workerman\Events\Event
4 workers       34 processes
worker_name                        exit_status      exit_count
webman                             65280            41471
monitor                            0                0
task                               0                0
plugin.webman.redis-queue.consumer 0                0
3129535 N/A     http://0.0.0.0:8787 webman       N/A         N/A       N/A     N/A           N/A    [busy]
3129536 N/A     http://0.0.0.0:8787 webman       N/A         N/A       N/A     N/A           N/A    [busy]
732 3 0
3个回答

changepll

基本上隔个1-2天就会全部busy. 导致无法提供服务,但我系统的负载非常低. 业务没什么访问量

  • 暂无评论
li914

截图

65280 意外退出状态码

  • changepll 2022-11-17

    65280,我按照大佬的提示 php已经开启error_Log 但没有错误爆出来

walkor

php 8.1.7有bug,升级下php或者升级下workerman

相关帖子
https://www.workerman.net/q/8851
https://www.workerman.net/q/8854

年代过于久远,无法发表回答
🔝