国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

同時(shí)在線1000部設(shè)備Gateway報(bào)錯(cuò)

程序gg了

錯(cuò)誤1:
Warning: system call select exceeded the maximum number of connections 1024, please install event/libevent extension for more connections.

錯(cuò)誤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:

4311 1 0
1個(gè)回答

phpcreeper

select最多支持1024個(gè)連接,warning提示也很清晰, 超過(guò)1024必須裝event擴(kuò)展,另外按照手冊(cè)優(yōu)化linux內(nèi)核參數(shù)。
http://doc.workerman.net/appendices/kernel-optimization.html

  • 程序gg了 2020-04-26

    實(shí)際上沒有1024個(gè)設(shè)備鏈接啊。最多700個(gè)設(shè)備同時(shí)在線

  • phpcreeper 2020-04-26

    程序它不會(huì)說(shuō)謊呀,你統(tǒng)計(jì)的有問題,裝event擴(kuò)展就對(duì)了,老生常談的問題了。

  • 程序gg了 2020-04-27

    @614:分布式GatewayWorker是不是就不用裝event擴(kuò)展了?

  • phpcreeper 2020-04-27

    @5671: 嗯,如果分布式你做好負(fù)載均衡也可以不用裝,其實(shí)你只要理解這個(gè)1024是單機(jī)并且使用了select多路復(fù)用時(shí)服務(wù)器能處理的最大socket連接數(shù)就知道怎么干了;

  • 程序gg了 2020-04-27

    @614:感謝回復(fù)

年代過(guò)于久遠(yuǎn),無(wú)法發(fā)表回答
??