錯誤1:
Warning: system call select exceeded the maximum number of connections 1024, please install event/libevent extension for more connections.
錯誤2:
Notice: fwrite(): send of 169 bytes failed with errno=11 Resource temporarily unavailable in /www/wwwroot/ws.lzkdkeji.com/GatewayWorker/vendor/workerman/workerman/Connection/TcpConnection.php on line 372
打印status:
select最多支持1024個連接,warning提示也很清晰, 超過1024必須裝event擴展,另外按照手冊優(yōu)化linux內(nèi)核參數(shù)。
http://doc.workerman.net/appendices/kernel-optimization.html
@5671: 嗯,如果分布式你做好負(fù)載均衡也可以不用裝,其實你只要理解這個1024是單機并且使用了select多路復(fù)用時服務(wù)器能處理的最大socket連接數(shù)就知道怎么干了;