tsung
tsung copied to clipboard
Sigle chat - Message getting shortage in DB when increasing the chat size from 10 and thinktime from 30 before chat request
Hi all,
We are doing single chat load test using tsung tool for XMPP protocol and ejabberd server.
I am running 500 users for single chat, each user will send 2 message with chat size is 10 and thinktime is 30 before message sending to user, in this case 1000 message is getting in DB. When we are increasing the chat size to 30 and think time to 40 in this case like 996, 980 message getting in DB instead of 1000 messages.
Please clarify why this much of message getting shortage in database(DB) when increase the size and chat.
Below is my single chat script.
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/opt/local/share/tsung/tsung-1.0.dtd" []>
<tsung loglevel="notice" dumptraffic="true" version="1.0">
<clients>
<client host="localhost" maxusers="100000" use_controller_vm="true">
</client>
</clients>
<servers>
<server host="Client_IP" port="5222" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="60" unit="minute">
<users maxnumber="500" arrivalrate="1" unit="second"/>
</arrivalphase>
</load>
<options>
<option type="ts_jabber" name="global_number" value="500"/>
<option type="ts_jabber" name="userid_max" value="500"/>
<option type="ts_jabber" name="domain" value="Client_IP"/>
<option type="ts_jabber" name="username" value="6000000000"/>
<option type="ts_jabber" name="passwd" value="venkey"/>
</options>
<sessions>
<session bidi="true" probability="100" name="jabber-plain" type="ts_jabber">
<request> <jabber type="connect" ack="local"/> </request>
<thinktime value="10"/>
<request> <jabber type="auth_sasl" ack="local"/> </request>
<request> <jabber type="connect" ack="local"/> </request>
<request> <jabber type="auth_sasl_bind" ack="local"/> </request>
<request> <jabber type="auth_sasl_session" ack="local"/> </request>
<request> <jabber type="presence:initial" ack="no_ack"/> </request>
<thinktime value="40"/>
<for from="1" to="2" var="i">
<transaction name="Chat">
<!--thinktime value="30"/-->
<request> <jabber type="chat" ack="global" size="30" destination="online"/> </request>
</transaction>
</for>
<thinktime value="30"/>
<request> <jabber type="close" ack="no_ack"/> </request>
</session>
</sessions>
</tsung>
Thanks, Venkey