无法使用Ejabbered中的Tsung执行聊天负载测试

时间:2018-08-13 06:39:58

标签: xml ejabberd tsung

Please find the script used 

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" dumptraffic="true" version="1.0">
  <clients>
    <client host="localhost" maxusers="10" use_controller_vm="true">
    </client>
  </clients>
<servers>
   <server host="XX.XX.XX.XXX" port="5222" type="tcp"/>
</servers>
<!-- register 50000 users in less than 15 minutes  -->
<!--load duration="2" unit="minute"-->
<load>

  <!--arrivalphase phase="1" duration="15" unit="minute"-->
  <arrivalphase phase="1" duration="1" unit="minute">
    <users maxnumber="10" arrivalrate="1" unit="second"></users>
  </arrivalphase>
  </load>
<options>
  <option type="ts_jabber" name="global_number" value="100"></option>
  <option type="ts_jabber" name="userid_max" value="100"></option>
  <option type="ts_jabber" name="domain" value="52.26.37.147"></option>
   <option type="ts_jabber" name="username" value="4990000000"/>
  <option type="ts_jabber" name="passwd" value="qwerty"/>
</options>
<sessions>
    <session probability="100" name="jabber-example" type="ts_jabber">
    <request> <jabber type="connect" ack="local"></jabber> </request>
    <thinktime value="10"></thinktime>
      <request> <jabber type="auth_sasl" ack="local"></jabber> </request>
        <request> <jabber type="connect" ack="local"></jabber> </request>
        <request> <jabber type="auth_sasl_bind" ack="local" ></jabber></request>
        <request> <jabber type="auth_sasl_session" ack="local" ></jabber></request>
        <request> <jabber type="presence:initial" ack="no_ack"/> </request>

    <thinktime value="30"></thinktime>
    <for from="1" to="2" var="i">
    <transaction name="Chat">
    <request> <jabber type="chat" ack="global" size="10" destination="online"/> </request>
    </transaction>

 </for>
<thinktime value="20"/>

        <request> <jabber type="close" ack="no_ack"></jabber> </request>

    </session>
</sessions>
</tsung>

=========================================
Please  find the Tsung.dump log file

NewClient:1534140110.777419:1 负荷:1 发送:1534140111.104641:<0.90.0>:http://etherx.jabber.org/streams'> Recv:1534140111.347245:<0.90.0>:http://etherx.jabber.org/streams'id ='18059141196264796784'from = '52 .26.37.147'version ='1.0'xml:lang ='en'> Recv:1534140111.352033:<0.90.0>:http://jabber.org/protocol/caps'hash ='sha-1'node ='http://www.process-one.net/en/ejabberd/'ver ='3eaJwvG0BBdCP5WPRC3UITa6JTs ='/> http:// jabber.org/features/iq-register'/>PLAINDIGEST-MD5X-OAUTH2SCRAM-SHA-1 NewClient:1534140112.332413:1

负载:2 发送:1534140112.574012:<0.93.0>:http://etherx.jabber.org/streams'> NewClient:1534140112.659329:1

NewClient:1534140118.242259:1 负荷:9 Recv:1534140118.286758:<0.98.0>:http://etherx.jabber.org/streams'id ='10643117744259599897'from = '52 .26.37.147'version ='1.0'xml:lang ='en'> Recv:1534140118.287268:<0.98.0>:http://jabber.org/protocol/caps'hash ='sha-1'node ='http://www.process-one.net/en/ejabberd/'ver ='3eaJwvG0BBdCP5WPRC3UITa6JTs ='/> http:// jabber.org/features/iq-register'/>PLAINDIGEST-MD5X-OAUTH2SCRAM-SHA-1 发送:1534140118.432247:<0.99.0>:http://etherx.jabber.org/streams'> 发送:1534140118.476645:<0.100.0>:http://etherx.jabber.org/streams'> NewClient:1534140118.487351:1 接收:1534140122.090767:<0.90.0>:49900000001@52.26.37.147/tsung 发送:1534140122.090941:<0.90.0>: 接收:1534140122.333169:<0.90.0>: 发送:1534140122.333711:<0.90.0>: 建议:1534140122.578334:<0.90.0>: 建议:1534140124.340222:<0.94.0>: Recv:1534140124.565599:<0.95.0>:

Recv:1534140129.878343:<0.99.0>: 建议:1534140129.883109:<0.100.0>: 建议:1534140129.890848:<0.101.0>: 建议:1534140130.125052:<0.101.0>: 建议:1534140132.578287:<0.90.0>: 建议:1534140134.015709:<0.93.0>: 建议:1534140134.337417:<0.94.0>: 建议:1534140134.564011:<0.95.0>: 建议:1534140139.313501:<0.96.0>: 建议:1534140139.347184:<0.97.0>: 建议:1534140139.451818:<0.98.0>: 建议:1534140139.877387:<0.99.0>:

当我们检查消息是否保存在数据库中时,该消息在数据库中不可用

0 个答案:

没有答案