apt-get install siege
siege -b -c 1000 -t 30s example.com
In above command:
- -c stands for concurrency. We are using 1000 concurrent connections.
- -t specifies time duration. We are using 30 seconds
- -b is to run siege in benchmark mode. Without it, siege inserts delay between 2 requests.
Lifting the server siege... done. Transactions: 8036 hits Availability: 98.66 % Elapsed time: 30.62 secs Data transferred: 148.16 MB Response time: 2.34 secs Transaction rate: 262.44 trans/sec Throughput: 4.84 MB/sec Concurrency: 612.92 Successful transactions: 8036 Failed transactions: 109 Longest transaction: 23.83 Shortest transaction: 0.01 FILE: /var/siege.log You can disable this annoying message by editing the .siegerc file in your home directory; change the directive 'show-logfile' to false.
Can be found in
When I run this command I get the following error:
[error] descriptor table full sock.c:108: Too many open files
I don’t get the error when I reduce the concurrent connections to 500 or 750. Is this something that can be changed with a configuration change, or is this due to limited resources?
Thanks very much.
You can try – https://rtcamp.com/tutorials/linux/sysctl-conf/
Basically you need to tweak settings for target server as well as local machine (in case two or more machines are involved)
Comments are closed.