没有任何操作 出现了一次重启 概率性重启 几个月一次这样
出现服务异常重启
升级版本?还是? 毕竟一两个月一次 影响还不是很大
2023-07-31 07:06:47 pid:3104117 Workerman[/game/gameServer/Server/../Games/ludo/start.php] status
2023-07-31 21:39:00 pid:3197219 Workerman[/game/gameServer/Server/../Games/ludo/start.php] status
2023-08-16 03:01:47 pid:3277683 Workerman[start.php] stopping ...
2023-08-16 03:01:47 pid:3277683 Workerman[start.php] stopping ...
2023-08-16 03:01:47 pid:3580182 worker[3580182] remains 64 connection(s)
2023-08-16 03:01:47 pid:3580182 worker[3580182] remains 32 connection(s)
2023-08-16 03:01:47 pid:3277683 worker[ludo:3580182] exit with status 139
2023-08-16 03:01:47 pid:3277683 Workerman[start.php] has been stopped
2023-08-16 03:05:37 pid:5653 Workerman[/game/gameServer/Games/ludo/start.php] start in DAEMON mode
2023-08-18 03:02:20 pid:205308 Workerman[/game/gameServer/Server/../Games/ludo/start.php] status
Workerman version:4.0.25 PHP version:7.3.10
load average: 2.74, 2.35, 2.17 event-loop:\Workerman\Events\Event
1 workers 1 processes
出现这个INFO信息:
2023-08-16 03:01:47 pid:3580182 worker[3580182] remains 64 connection(s)
2023-08-16 03:01:47 pid:3580182 worker[3580182] remains 32 connection(s)
记得只有你执行了 stop -g 命令才会出现上面提示,当前那个进程告诉你还有64个TCP连接存活,过了一会儿还有32个连接存活。这种停止方式,客户端在超时范围内都是安全的,不会暴力关闭客户端连接。
印象中4.0.25版本信号有点问题,升级workerman重启下就好了