zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Webserver Benchmark

December 6, 2010 by Igor Drobot Leave a Comment

ab (Apache Benchmark) is a tool for benchmarking your HTTP server. It provides a quick an easy way to evaluate your http serving capabilities. ab overloads the server with http requests and measures the time it takes to serve all those requests.

How to install ab and where to get it? The real thing is that ab comes preconfigured with your apache installation. Apache by himself is just an extension command for the Apache Web Server. So if you have already installed Apache, then you should be able to run ab.

What we need in order to get ab to work is type the command and append the URL address we want to test. The command is issued as follows.

1
server ~ # ab -n10000 -c8 http://piper/

server ~ # ab -n10000 -c8 http://piper/

1
2
# Number of connections to send to the server
-n

# Number of connections to send to the server -n

1
2
# Number concurrent requests to be made
-c

# Number concurrent requests to be made -c

1
2
# Option activates the KeepAlive feature
-k

# Option activates the KeepAlive feature -k

1
2
# Is the timelimit (in seconds)
-t

# Is the timelimit (in seconds) -t

ab testing mechanism actually is a good example of a Denial of Service (DoS) attack.

Filed Under: Bash, Linux Tagged With: AB, Apache, Benchmark, DOS, Lighttpd

Nagios3 with Lighttpd

November 24, 2010 by Igor Drobot 6 Comments

Why I do it?
Cause my Nagios3 is running as a virtual machine on a Xen Server, and I have less than 64MB of RAM.

First I install lighttpd, to prevent automatically apache2 installation during the nagios3 installation:

1
apt-get install lighttpd

apt-get install lighttpd

[Read more…]

Filed Under: Debian, Linux, Networking Tagged With: Lighttpd, Lighttpd and Nagios3, Lighttpd with Nagios3, Nagios3

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok