What about the C10k in practice?

自古美人都是妖i 提交于 2019-12-07 09:36:41

问题


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

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:

siege -c 10000 localhost:8000

I get an error:

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

回答1:


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.



来源:https://stackoverflow.com/questions/15034018/what-about-the-c10k-in-practice

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!