First tsung load testing

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

  1. Hi, I had learn the tsung these few days. I setup the centos 6.5 on the vm machine ( ) 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, 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。

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s