Saturday, March 19, 2011

Install Siege - A Web Performance Testing Application

Siege is a PERL-based web and endpoint performance testing application built to do integrity, baseline/benchmark, load and spike (when used with Bombard)  tests. It is similar to applications like Apache Bench, JMeter and HttpPerf. Warning: It doesn't work on Microsoft Windows unless you run it under Cygwin or run a Virtual Machine with *nix OS.

Platform Compatibility as Stated from the Siege Homepage

"Siege was written on GNU/Linux and has been successfully ported to AIX, BSD, HP-UX and Solaris. It should compile on most System V UNIX variants and on most newer BSD systems. Because Siege relies on POSIX.1b features not supported by Microsoft, it will not run on Windows. Of course you can use Siege to test a Windows HTTP server."

Let's Install Siege

Unfortunately,t there's no official RPM package from the creator of siege. You might however find some out there. The steps below are installation steps from source only.
cd /usr/local/src
tar -xzf siege-latest.tar.gz
cd siege-2.70 #replace "2.70" with proper version number if necessary
./configure # if you want ssl support, --with-ssl=/path/to/openssl
make install

Try Siege

siege -t10s -c25 #will siege your hostname for 10 secs with 25 concurrent users

Check Configuration

The configuration file is stored in a file called siegerc which stands for siege resource. You can get the siege setting specified in the file by typing the following:
siege -C
Give it try. It's a start of more complex performance testing use-cases. Here's an Siege FAQ page from the creator - Jeff Fulmer.
  • Related Links Widget for Blogspot

No comments: