number of maximum connection we can use with swoole?
hello i want to know how many is the maximum connection per second that swoole can support we want use this framework for real-time game server and it is very important to know max number support connection/second for swoole framework. thank you
峰哥回复如下:
1 2 3 4 5 6
It depends on the value of your system ulimit -n and your settings. The maximum limit is 1 million.
Warning: Swoole\Coroutine\Client::connect(): new Socket() failed, Error: No file descriptors available[24] in /root/codeDir/cppCode/swoole-src/benchmark/co_run.php on line 249
Warning: Swoole\Coroutine\Client::connect(): new Socket() failed, Error: No file descriptors available[24] in /root/codeDir/cppCode/swoole-src/benchmark/co_run.php on line 249
Warning: Swoole\Coroutine\Client::connect(): new Socket() failed, Error: No file descriptors available[24] in /root/codeDir/cppCode/swoole-src/benchmark/co_run.php on line 249
Warning: Swoole\Coroutine\Client::connect(): new Socket() failed, Error: No file descriptors available[24] in /root/codeDir/cppCode/swoole-src/benchmark/co_run.php on line 249
Concurrency Level: 100 Time taken for tests: 0.7476 seconds Complete requests: 10,000 Failed requests: 400 Connect failed: 0 Total send: 9,830,400 bytes Total reveive: 19,660,800 bytes Requests per second: 12841.091492777 Connection time: 0.0091 seconds