How about the C10k in practice?

I just tested a small application made using Tornado and I am far from 10k concurrent connections! To run the test, I used Siege , in OpenSuse 12.2 64 bit i7 machine with 8 GB 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 a 10k connection:

 siege -c 10000 localhost:8000 

I get an error message:

 [error] descriptor table full sock.c:109: Too many open files 
+4
source share
1 answer

Check the output of the ulimit command. You will need to increase the file descriptor limit on both the siege and the tornado web server to complete your test.

+4
source

All Articles