同时在线1000部设备Gateway报错

0

错误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:

status.jpg
已邀请:

blogdaren - 专注C编程、PHP内核、LINUX、VIM【http://www.phpcreeper.com】

赞同来自: 程序gg了

select最多支持1024个连接,warning提示也很清晰, 超过1024必须装event扩展,另外按照手册优化linux内核参数。
http://doc.workerman.net/appendices/kernel-optimization.html

要回复问题请先登录注册