繁体   English   中英

在实践中C10k怎么样?

[英]What about the C10k in practice?

我刚刚测试了一个使用Tornado制作的小应用程序,而且我远非10k同时连接 为了进行测试,我使用了Siege ,在OpenSuse 12.2 64位下 ,机器是i7,带有8GB以下是结果:

siege -c 4000 localhost:8000

我收到了这个错误:

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

如果我使用10k连接:

siege -c 10000 localhost:8000

我收到一个错误:

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

检查ulimit命令的输出。 您需要增加围攻和龙卷风网络服务器上的文件描述符限制才能完成基准测试。

暂无
暂无

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

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