Traffic Generators
Siege
Siege is an open source stress / regression test and benchmark utility.
siege -c100 -t30S -d10 -b -v aman.info.tm
Some Extensions
--header="Cookie: SESSb43b2d1d084de3872c89b0b125b64564=Jafuk06rppYAXIxWaU0LY2VmqxN997DsKU3BSgfArCM" -f /path/to/some-urls.txt
The some-urls.txt file is just a simple list of URLs on newlines:
http://www.mywebsite.com/about-us http://www.mywebsite.com/contact-us
Httperf
Installation:
sudo apt install httperf
Usage:
httperf --server waf.avitest.com --port 80 --num-conns 100 --rate 10 --timeout 1
Curl
curl -s -o /dev/null -w "%{http_code}" http://waf.avitest.com seq 100 | parallel -j0 curl -s -o /dev/null -w "%{http_code}" http://waf.avitest.com
for i in `seq 1 99999`; do echo "Status Code:"; curl -s -o /dev/null -w "%{http_code}" https://10.1.1.1; sleep 1; done
Apache Benchmark
ab -t 1 -n 1000 -c 300 http://waf.avitest.com/
Increase Apache MaxClients (now called MaxRequestWorkers in new versions) on Backend Server:
sudo nano /etc/apache2/mods-available/mpm_event.conf MaxRequestWorkers 1000 ServerLimit 565
Slowhttptest
Source: ubuntu.com
This section is under construction. |
- References
{{#widget:DISQUS
|id=networkm
|uniqid=Traffic Generators
|url=https://aman.awiki.org/wiki/Traffic_Generators
}}