实际中的C10k呢? [英] What about the C10k in practice?

查看:121
本文介绍了实际中的C10k呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚测试了一个使用 Tornado 制作的小型应用程序,并且与 10k同时连接相去甚远! 为了进行测试,我在 OpenSuse 12.2 64 bit <下使用了 Siege ./strong>,则该计算机为 i7 ,具有 8GB 结果如下:

I just tested a small application made using Tornado, and i'm far from the 10k simultanuous connections! 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 -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连接:

And if i use 10k connection:

siege -c 10000 localhost:8000

我得到一个错误:

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

推荐答案

检查ulimit命令的输出.您需要同时提高攻城和龙卷风网络服务器的文件描述符限制,才能完成基准测试.

Check the output from the ulimit command. You'll need to increase the file descriptor limit on both siege and the tornado webserver to finish your benchmark.

这篇关于实际中的C10k呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆