Gateway worker 压力测试发现严重问题

我用gateway worker做了个tcp服务器,并且进行了压力测试,发现如下严重问题,请帮忙看看如何解决。
问题1:我原来设置了30秒超时断开的,现在情况是:连接能成功,30秒后不会自动断开了。
问题2:我原来设置了,客户端发送信息后,会自动回复给客户端的。现在情况是:不会回复了,客户端发送数据没有收到任何回应。
问题3:查看状态,发现保持连接了接近3000个连接,但是现在我已经把所有客户端断开了,剩下3个客户端连接了。注:3个客户端都不能和tcp服务器正常通信。状态如下图所示:

gateway_worker.png

 
已邀请:

jinnstyl - 80 IT

赞同来自:

补充一下,压力测试时候最大5000个连接。
现在过了一会儿,发现tcp客户端不能连接了。
workerman log如下:
2019-01-04 21:36:44 pid:18663 Workerman[start.php] start in DAEMON mode
2019-01-04 21:57:55 pid:19008 Workerman[start.php] status 
2019-01-04 22:09:02 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:02 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:02 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:02 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:08 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:08 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:10 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:10 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:11 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:11 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:16 pid:19084 Workerman[start.php] status 
2019-01-04 22:09:26 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:26 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:27 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:27 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:27 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:27 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:28 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:28 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:28 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:28 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:30 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:31 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:32 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:32 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:32 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:32 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:33 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:33 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:34 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:34 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:46 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:46 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:47 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:47 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:48 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:48 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:48 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:48 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:09:51 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:10:45 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:10:45 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:10:45 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
2019-01-04 22:10:45 pid:18668 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://wiki.workerman.net/Error3
 

walkor

赞同来自:

workerman手册开发必读里有写,超过1000并发连接必须安装event扩展(或者libevent扩展),并严格按照手册优化linux内核。从截图看event扩展肯定是没装的,linux内核优化估计也没做。
http://doc.workerman.net/must-read.html
 

要回复问题请先登录注册