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

GatewayWorker作為websocket客戶端,用的AsyncTcpConnection,報錯

skl_TZ

GatewayWorker作為websocket客戶端,用的AsyncTcpConnection,開到200個客戶端的時候是正常的,開到300個客戶端的時候就出現(xiàn)如下錯誤:

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:8888 (Unknown error) in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Connection/AsyncTcpConnection.php on line 104
PHP Warning:  require_once(/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/GatewayWorker/Lib/Context.php): failed to open stream: Too many open files in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Autoloader.php on line 60

Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/GatewayWorker/Lib/Context.php): failed to open stream: Too many open files in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Autoloader.php on line 60
PHP Fatal error:  require_once(): Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/../GatewayWorker/Lib/Context.php' (include_path='.:') in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Autoloader.php on line 60

Fatal error: require_once(): Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/../GatewayWorker/Lib/Context.php' (include_path='.:') in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Autoloader.php on line 60
WORKER EXIT UNEXPECTED E_COMPILE_ERROR require_once(): Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/../GatewayWorker/Lib/Context.php' (include_path='.:') in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Autoloader.php on line 60
PHP Warning:  file_put_contents(/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/../workerman.log): failed to open stream: Too many open files in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Worker.php on line 1299

Warning: file_put_contents(/Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/../workerman.log): failed to open stream: Too many open files in /Applications/XAMPP/xamppfiles/htdocs/ttcq/Workerman/Workerman/Worker.php on line 1299
worker exit with status 65280

需求需要,要開到3000個客戶端,想問下有沒有解決方案

7336 1 0
1個回答

walkor 打賞

系統(tǒng)內(nèi)核配置問題。
Too many open files ,進程打開文件數(shù)量超過了系統(tǒng)限定值,估計你的系統(tǒng)限定值是256.

請參照手冊優(yōu)化linux內(nèi)核,增大這個值
http://doc3.workerman.net/appendices/kernel-optimization.html

  • 暫無評論
年代過于久遠,無法發(fā)表回答
??