我刚刚测试了一个使用Tornado制作的小型应用程序,但我离10k 同时连接还很远!为了进行测试,我使用了Siege,在OpenSuse 12.2 64 bit下,机器是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