server.log中的一个报错,还望群主解答一下

chosen1cwp
-bash-4.1$ tail -n 10 server.log
2014-09-17 20:21:06 Worker:sendBufferToWorker fail $this->workerConnections=array (
) ip:
2014-09-17 20:21:06 Worker:sendBufferToWorker fail $this->workerConnections=array (
) ip:
2014-09-17 20:21:06 Worker:sendBufferToWorker fail $this->workerConnections=array (
) ip:
2014-09-17 20:21:06 Worker:sendBufferToWorker fail $this->workerConnections=array (
) ip:
2014-09-17 20:21:06 Worker:sendBufferToWorker fail $this->workerConnections=array (
) ip:

错误信息如上所示:这样子就是 突然间在一瞬间 就产生这样一个大量的同样的错误
不知道 这个错误时什么造成的 ??

3107 1 0
1个回答

walkor

这个错误的意思是Gateway与Worker之间的长连接没有建立,可能的原因有:
1、WorkerMan刚刚启动,Gateway与Worker之间的长连接还没来得及建立,就收到客户端请求。解决方法:这种属于正常情况,WorkerMan启动后等待1-2秒才能进入就绪状态。

2、Worker进程(一般是Event.php)有FatalErr等致命错误,导致Worker进程无法正常运行,所以Gateway与Worker之间的连接无法建立。解决方法:是通过php错误日志找到致命错误的原因,并修复。

3、BusinessWorker.conf 中配置了 max_request,并且所有的BusinessWorker进程接收的请求数同时达到max_requests限定值,同时自动退出重启了。解决方法:去掉BusinessWorker.conf 中的max_request配置,或者设置为一个较大的值,例如1000000。并同时提高BusinessWorker.conf.start_workers的值,一般可设置为cpu核数的8倍

  • chosen1cwp 2014-10-01

    群主,我今天又遇到这个情况,根据你的解答我分析了一下:第一条不符合我的,第二条也不符合,应为重启了workermand服务之后就一切正常了,第三条:我已经按照你说的那样做了设置了,但还是会有这个情况,就是重启了之后就是好的,过一段时间就会出现老问题了,

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