Topics

On this page

Last updated on Dec 18, 2020

Siege

Install

apt-get install siege

Run

siege -b -c 1000 -t 30s example.com

In above command:

Sample Output

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.

Siege Log

Can be found in  /var/siege.log


Comments

  1. Greetings,

    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.

    Jim

    1. You can try – http://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)