linux poison RSS
linux poison Email

Load / Performance Testing Web Application - Httperf

Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.

The focus of httperf is not on implementing one particular benchmark but on providing a robust, high-performance tool that facilitates the construction of both micro- and macro-level benchmarks. The three distinguishing characteristics of httperf are its  ...
 * Robustness, which includes the ability to generate and sustain server overload
 * Support for the HTTP/1.1 and SSL protocols
 * Extensibility to new workload generators and performance measurements.

The purpose of httperf is to help answer a number of complex or otherwise hard to investigate questions. For instance, it is usually desirable when designing and programming a website to be interested in how well it will perform under a variety of circumstances.  When investigating whether or not to invest in faster equipment, many people want to know the limits to which their current hardware can perform. This is what httperf is designed to help answer.

Installing Httperf:
Open the terminal and type following command:
$ sudo apt-get install httperf
Running Httperf:
Below is the simple example of running httperf:
httperf --server localhost --rate 10 --num-conns 500
The 3 arguments on the command line are:
 * server: The name or IP address of your Web site (you can also specify a particular URL via the --uri argument)
 * rate: Specifies the fixed rate at which connections or sessions are created to your webserver --- indicates the number of concurrent clients accessing the server
 * num-conns: This option is meaningful for request−oriented workloads only. It specifies the total number of connections to create.


There are other good opensource tools to perform load / performance testing your web application
LoadUI
Openload
Curl-loader
ApacheBench (ab)




0 comments:

Post a Comment

Related Posts with Thumbnails