压力测试运行一段时间后发现无法推送消息给客户端了

toolsman

版本2.1.4 基于客户端之间文本聊天的demo修改的,压力测试运行一段时间后发现无法推送消息给客户端了,看服务器log在不同时间出现过两种错误提示,应该怎样修复错误?
1、2015-02-07 00:00:58 Worker:sendBufferToWorker fail. the Connections between Gateway and BusinessWorker are not ready

2、2015-02-07 20:15:59 Worker:worker:Gateway pid:49881 memory exceeds the maximum 124040>=124000

6980 1 0
1个回答

walkor

1、2015-02-07 00:00:58 Worker:sendBufferToWorker fail. the Connections between Gateway and BusinessWorker are not ready

这个是Gateway与BusinessWorker 之间没建立起来长连接,如果是在Workerman刚启动时报这个错可以忽略

2、2015-02-07 20:15:59 Worker:worker:Gateway pid:49881 memory exceeds the maximum 124040>=124000

这个是Monitor进程发现Gateway进程占用内存超过配置中的限制
https://github.com/walkor/workerman-2.1.4/blob/master/workerman/conf/conf.d/Monitor.conf#L23
,试图去重启这个进程(如果该进程配置了no_reload=1则不会重启)。如果你的客户端连接很多,可以调高这个配置

导致无法推送的问题需要自己定位下,原因有很多,可能是服务端问题,也可能是客户端问题,甚至是系统配置问题,我这没有相关环境无法帮你。

  • 暂无评论
年代过于久远,无法发表回答
🔝