我用gateway worker做了個tcp服務(wù)器,并且進行了壓力測試,發(fā)現(xiàn)如下嚴重問題,請幫忙看看如何解決。
問題1:我原來設(shè)置了30秒超時斷開的,現(xiàn)在情況是:連接能成功,30秒后不會自動斷開了。
問題2:我原來設(shè)置了,客戶端發(fā)送信息后,會自動回復(fù)給客戶端的?,F(xiàn)在情況是:不會回復(fù)了,客戶端發(fā)送數(shù)據(jù)沒有收到任何回應(yīng)。
問題3:查看狀態(tài),發(fā)現(xiàn)保持連接了接近3000個連接,但是現(xiàn)在我已經(jīng)把所有客戶端斷開了,剩下3個客戶端連接了。注:3個客戶端都不能和tcp服務(wù)器正常通信。狀態(tài)如下圖所示:
[attach]1620[/attach]
?
補充一下,壓力測試時候最大5000個連接。
現(xiàn)在過了一會兒,發(fā)現(xiàn)tcp客戶端不能連接了。
workerman log如下:
2019-01-04 21:36:44 pid:18663 Workerman start in DAEMON mode
2019-01-04 21:57:55 pid:19008 Workerman 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 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
?
workerman手冊開發(fā)必讀里有寫,超過1000并發(fā)連接必須安裝event擴展(或者libevent擴展),并嚴格按照手冊優(yōu)化linux內(nèi)核。從截圖看event擴展肯定是沒裝的,linux內(nèi)核優(yōu)化估計也沒做。
http://doc.workerman.net/must-read.html
?