简体   繁体   English

在实践中C10k怎么样?

[英]What about the C10k in practice?

I just tested a small application made using Tornado , and i'm far from the 10k simultanuous connections ! 我刚刚测试了一个使用Tornado制作的小应用程序,而且我远非10k同时连接 To make the test, i've used Siege , under OpenSuse 12.2 64 bit , the machine is i7 with 8GB Here is the result: 为了进行测试,我使用了Siege ,在OpenSuse 12.2 64位下 ,机器是i7,带有8GB以下是结果:

siege -c 4000 localhost:8000

I got this error: 我收到了这个错误:

Transactions:                   2164 hits
Availability:                  39.90 %
Elapsed time:                   6.85 secs
Data transferred:               2.52 MB
Response time:                  1.04 secs
Transaction rate:             315.91 trans/sec
Throughput:                     0.37 MB/sec
Concurrency:                  329.74
Successful transactions:        2164
Failed transactions:            3260
Longest transaction:            5.94
Shortest transaction:           0.00

And if i use 10k connection: 如果我使用10k连接:

siege -c 10000 localhost:8000

I get an error: 我收到一个错误:

[error] descriptor table full sock.c:109: Too many open files

Check the output from the ulimit command. 检查ulimit命令的输出。 You'll need to increase the file descriptor limit on both siege and the tornado webserver to finish your benchmark. 您需要增加围攻和龙卷风网络服务器上的文件描述符限制才能完成基准测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM