Questions tagged [tsung]

Tsung is an open-source multi-protocol distributed load testing tool.

Tsung is an open source multi-protocol distributed load tool.

The purpose of Tsung is to simulate users in order to test the scalability and performance of IP based client/server applications.

Tsung is written in Erlang to take advantage of that language’s concurrency support.
Tsung will send X TPS every second even if tested system cannot cope - so you can expose bottlnecks.
The tool can simulate very large numbers of users per server, making it ideal for analyzing and testing the performance of large-scale applications, such as instant messaging solutions.

Tsung scales well (it’s been used to simulate tens of thousands of users), it supports forms and HTTP sessions, and includes some niceties like proxy recording, ‘thinktime’ support, and a choice of random or ordered traffic.

Tsung is available free of charge under the GPLv2 license as an open-source software product.
It is protocol-independent and can be used to stress HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP, Jabber/XMPP servers.

153 questions
11
votes
1 answer

Testing a websocket server with tsung

I start to use tsung to test my server with socket.io. I downloaded the Github Zip, compiled and installed the latest "dev" including Websockets compatibility. After browsing a lot of Google results and message in this mailing list, I couldn't find…
Arnaud S
  • 111
  • 3
10
votes
4 answers

tsung_stats.pl on Mac OS X Mavericks run into "Can't locate Template.pm" error

I'm trying to run tsung_stats.pl from tsung (installed through brew) on Mac OS X 10.9 and got error: Can't locate Template.pm in @INC (@INC contains: /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 …
T1000
  • 880
  • 2
  • 14
  • 30
9
votes
2 answers

Difference between open-ended and close-ended load testing tools

What is the difference between open-ended and close-ended load testing? Thread-based load-testing tool comes in which category? Which are some examples of load testing tools in each category?
Stanly
  • 547
  • 1
  • 5
  • 22
8
votes
3 answers

Launching a web server inside ruby tests

I'm writing a library to wrap tsung's functionality in a way that can be better used by rails applications. I want to write some integration tests that boil down to the following: launch a simple web server run tsung-recorder via the library launch…
Ben Taitelbaum
  • 7,012
  • 3
  • 22
  • 43
7
votes
1 answer

Tsung. contents_from_file attribute with variable value

I've got a problem using tsung: I've got several files in one dir wich I have to send to the server. I create file with list of this files (fullpath) and add an option to tsung config:
7
votes
3 answers

Tsung load test from mac os x

I am trying to fire off a Tsung request from my Mac OS X machine and i'm not having much luck. I have edited the ~/.tsung/tsung.xml config file and even tried changing the location of that file on several occasions with the -f parameter. When I run…
David
  • 28,483
  • 10
  • 38
  • 68
6
votes
0 answers

tsung websocket testing garble message

I am trying to load test a websocket server. Server accepts and sends application/json and interactions seems to be rather fine. Server accepts correctly messages sent from client (tsung). Unfortunately from the client perspective it can't read…
6
votes
2 answers

Erlang: Cannot start slave - {error,timeout}

I'm currently trying to set up a distributed Tsung load testing environment which uses the Erlang slave functionality, however I have been unsuccessful in getting the controller node to start a slave node. E.g. (musicglue@load1)1>…
5
votes
2 answers

How to write xml scripts for load testing "XMPP over BOSH" using Tsung?

I have to perform a comparison of "simple XMPP" with "XMPP over BOSH" for our mobile client(chat based). I want to use same tool to compare both. I searched on internet and found a tool called tsung which supports both HTTP and XMPP. I have setup…
Dinesh
  • 696
  • 5
  • 21
5
votes
3 answers

Sending json with tsung POST request

I'm trying to create a POST request with Tsung How can I send a JSON document in the contents attribute? contents='{"name": "alex"}' is of course…
Alex
  • 34,123
  • 47
  • 189
  • 315
5
votes
1 answer

Simulating online user in eJabberd with Tsung

I'm testing eJabberd server with Tsung on local computer. This is my config file. Everything is working and running correctly.
max
  • 1,519
  • 1
  • 19
  • 34
4
votes
0 answers

How do we customize tsung scripts for sending message in Openfire server?

Tsung snippet: It Generates below request,
udhaya
  • 73
  • 6
4
votes
1 answer

Using a custom stanza in tsung (for testing ejabberd)?

I would like to use a custom stanza with tsung (to test ejabberd). Suppose my looks like this: How would I add that into a…
Hari Haran
  • 1,503
  • 4
  • 12
  • 25
4
votes
1 answer

Tsung Issue with Dyn_Variable

I am very new to ERLANG and TSung, I never worked in this areas, but I am very much keen to know the fundamentals and do distributed load test for my web application. I am in half the way to complete, but I have a big hurdle and not able to moving…
java_king
  • 51
  • 2
  • 4
4
votes
1 answer

Tsung: Using iterator in loop

I'm trying to create load testing scenario for ejabberd with tsung. I want simulate thousands of XMPP events from thousands clients. According tsung's manual I can create repeated actions using for loop:
ymn
  • 2,149
  • 2
  • 17
  • 38
1
2 3
10 11