15:47:20.765164 lstat("/../workerman.log", {st_mode=S_IFREG|0644, st_size=1099, ...}) = 0
15:47:20.765396 lstat("workerman", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
15:47:20.765515 lstat("", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
15:47:20.765626 lstat("", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
15:47:20.765743 lstat("", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
15:47:20.765849 lstat("/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
15:47:20.765990 open("/workerman/workerman.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 8
15:47:20.766116 fstat(8, {st_mode=S_IFREG|0644, st_size=1099, ...}) = 0
15:47:20.766221 lseek(8, 0, SEEK_CUR) = 0
15:47:20.766323 lseek(8, 0, SEEK_CUR) = 0
15:47:20.766418 flock(8, LOCK_EX) = 0
15:47:20.766522 write(8, "2019-08-13 15:47:20 pid:21658 Se"..., 183) = 183
15:47:20.766795 close(8) = 0
15:47:20.766964 gettimeofday({1565682440, 766985}, NULL) = 0
15:47:20.767122 open("/workerman/workerman.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 8
15:47:20.767241 fstat(8, {st_mode=S_IFREG|0644, st_size=1282, ...}) = 0
15:47:20.767438 lseek(8, 0, SEEK_CUR) = 0
15:47:20.767543 lseek(8, 0, SEEK_CUR) = 0
15:47:20.767643 flock(8, LOCK_EX) = 0
15:47:20.767782 write(8, "2019-08-13 15:47:20 pid:21658 Se"..., 183) = 183
15:47:20.767958 close(8) = 0
15:47:20.768113 gettimeofday({1565682440, 768134}, NULL) = 0
15:47:20.768237 select(8, , , , {20, 446277}) = 0 (Timeout)
15:47:41.228452 gettimeofday({1565682461, 228499}, NULL) = 0
15:47:41.228597 gettimeofday({1565682461, 228620}, NULL) = 0
Workerman version:3.5.20 PHP version:7.1.27
start time:2019-08-12 19:26:31 run 0 days 20 hours
load average: 0, 0, 0 event-loop:\Workerman\Events\Select
4 workers 6 processes
worker_name exit_status exit_count
ChatBusinessWorker 65280 1
ChatGateway 0 0
globalDataServer 0 0
Register 0 0
----------------------------------------------PROCESS STATUS---------------------------------------------------
pid memory listening worker_name connections send_fail timers total_request qps status
6617 4M none ChatBusinessWorker 3 0 6 1410 0
21657 4M none ChatBusinessWorker 3 0 1 57 0
21658 2M websocket://ip:端口 ChatGateway 1 0 1 8590 0
21659 2M websocket://ip:端口 ChatGateway 2 0 1 5813 0
21660 2M frame://ip:端口 globalDataServer 2 0 0 14468 0
21661 2M text://ip:端口 Register 5 0 0 5 0
----------------------------------------------PROCESS STATUS---------------------------------------------------
Summary 16M - - 16 0 9 30343 0
ChatBusinessWorker 65280 1 这个地方是因为mysql 连接超时出的问题
但是还是会时不时地 服务器不返回websocet握手信息导致客户端连接不上
是因为在 onWorkerStart 放了 数据库链接 和 GlobalData\Client吗
出错了吧,一直在不断打开workerman.log,看下日志吧