Just finished my first ‘official’ web server load testing by using the bamboo plan for tsung that I built previously. Here are a few things that I learned:
- When set use_controller_vm=”true”, by default maxusers is 800. Adding maxusers=”50000″ for example to change it.
- For testing proxy server, the option has to be configured as <option type=”ts_http” name=”http_use_server_as_proxy” value=”true”></option>
- arrivalrate means how many users arrive.
- Use loop to increase single users’ request.
- Tune the arrivalrate and the number of loops to increase/decrease load.
- tsung is CPU intensive. I use EC2 t2.small instance (1 vcpu, 2G ram) for my testing. It generates around 5800 requests/second vs 80% CPU utilization.
The tsung configuration is the key to run a successful load testing. Here is the configuration that I used for testing. Very simple but seems worked quite well.
2 thoughts on “First tsung load testing”
Hi, I had learn the tsung these few days. I setup the centos 6.5 on the vm machine ( 192.168.128.130 ) at my windows. and i start to learn this tool step by step. but i still can’t make a successful recorder script by now. I type the command : tsung-recorder -p http start,
and it shows “Starting Tsung recorder on port 8090”, now i make a setting in the Firefox Browser ( edit -> preference-> Advanced -> Network -> Connection -> Setting -> Manual Proxy confirguration (type 192.168.128.130, port 8090), then restart the browser, click the url, login the website and logout, finally, type the command: tsung-recorder stop. there’s a new xml show up, but there’s nothing in the file. I can’t figure out this problem， i need some help。
The tsung recorder command looks right. Where did your run the Firefox? on your windows or the linux VM? Try ‘curl -x 127.0.0.1:8090 http://www.google.com‘ on the linux VM to see what you get.