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.

156 questions
2
votes
2 answers

Extract array elements from a JSON response in tsung, array being the root of the response

I am using tsung 1.6 and I have a configuration file in which one of the requests return the following response. Response: [ { key: value1 }, { key: value2 } ] My goal is to extract some variables items from the response and use them further.…
Chetan Kothari
  • 761
  • 1
  • 5
  • 12
2
votes
1 answer

Why I get Error code 404?

After I run the test as: tsung -f test.xml start I get this: $ cd /Users/samir/.tsung/log/20160910-1035 Apple-Mac-mini:20160910-1035 samir$ /usr/local/Cellar/tsung/1.6.0/lib/tsung/bin/tsung_stats.pl creating subdirectory data creating subdirectory…
simo
  • 23,342
  • 38
  • 121
  • 218
2
votes
0 answers

How to embed custom XML elements inside message stanza's in Tsung XML file?

How to send the following type of custom modified message stanzas in Tsung? The idea is…
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
2
votes
1 answer

Ejabberd limits online users count at 64,464. Descriptors already increased

I am being restricted to bring more than roughly 64000 (64,464 precisely) users online on an Ejabberd node. I am using xml script (Tsung) to bring the users online on the node. I have raised the limit of descriptors already: Eshell V5.10.4 (abort…
bit_by_bit
  • 337
  • 2
  • 14
2
votes
0 answers

Tsung. How to continue use the previous Jabber session after HTTP switching to and back?

I'm trying to create load testing scenario with tsung. I need to use 2 types of session: ts_jabber and ts_http. May I continue use Jabber session after HTTP switching to and back? This is my code:
Dima
  • 21
  • 1
2
votes
1 answer

Tsung - testing a proxy server

I am trying to load test a proxy server. I know that I need to add the following command to the TSUNG configuration file: option type="ts_http" name="http_use_server_as_proxy" value="true" However, I am not sure where in the xml configuration file…
msuberri
  • 21
  • 3
2
votes
0 answers

Tsung: Can we use voice chat, file transfer in tsung by jabber plugin

Can we pass voice chat and file transfer through jabber plugin in tsung. How can i create actual chatting load in a mobile messaging app like whats app. [I've created a session in tsung to xmpp server via jabber plug in. In same session I passed…
2
votes
1 answer

Tsung Secure Websockets Support

Can someone give an example xml that configures Tsung to support secure websockets (wss)? The default documentation doesn't say anything about whether wss is supported or not.
HenryK
  • 25
  • 3
2
votes
3 answers

Tsung Load-Test XMPP with TLS

Does anyone have an xml tsung configuration file with TLS implementation? I want to test TLS Secured connections on my XMPP server, but I can't get the script running with TLS enabled.
bobbywebz
  • 63
  • 3
  • 9
2
votes
2 answers

Unable to start distributed tsung cluster

I am trying to setup a distributed tsung cluster and am unable to get it running. tsung -f tsung-script.xml start Starting Tsung "Log directory is: /home/ec2-user/.tsung/log/20140414-0158" Host key verification failed. I have tried the manual's…
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
2
votes
2 answers

Performance testing: JMeter vs Tsung

What's the differences between JMeter and Tsung? I read that Tsung may generate more load than JMeter if test with same hardware, but how close it to reality?
Bob Meliev
  • 1,198
  • 12
  • 17
2
votes
1 answer

tsung postgresql ssh: connect to host localhost port 22: Connection refused

I'm trying to do load test postgresql db using tsung. I used pgsql.xml provided in examples folder in tsung-1.5.0. Here's my pgsql.xml: https://github.com/processone/tsung/blob/master/examples/pgsql.xml.in I run tsung using tsung -f test.xml -p…
user2448361
  • 155
  • 2
  • 10
2
votes
1 answer

Tsung Erlang function (dynvars) - escaping quotes

New to Tsung and Erlan and have run into an issue I haven't been able to find answer to. I'm using erlang-mysql-driver in a Tsung dynvars Erlang function and I seem to be having a problem with escaped quotes. I'd like to do something like this: …
Doug Sparling
  • 535
  • 1
  • 5
  • 8
2
votes
0 answers

Tsung not working with JabberHttpBind

I'm using tsung to test BOSH with openfire and jabberd2. I'm able to test openfire with tsung. But for jabberd2+JabberHttpBind, the authentication itself does not happen. Any clues or tricks to troubleshoot will be very helpful. Thanks in advance.
amolkul
  • 143
  • 1
  • 9
1
vote
2 answers

Unable to set-up tsung cluster on EC2 - Erlang crash

I am trying to setup a tsung cluster on two ec2 instances: Master - ip-10-212-101-85.ec2.internal Slave - ip-10-116-39-86.ec2.internal Both have erlang (R15B) and tsung (1.4.2) installed, and install-path is same on both of them. I can do ssh from…
CPJoshi
  • 387
  • 4
  • 11
1 2
3
10 11