简体   繁体   中英

Tsung connected users are not shown

I am trying to make load testing on xmpp ejabberd server using tsung.Every time i run my tsung.xml file no users are connected. here it's my tsung.xml file

[root@chatting-server-test-2 .tsung]# vim tsung.xml
<servers>
  <server host="localhost" port="5222" type="tcp"></server>
</servers>

  <load>
   <arrivalphase phase="1" duration="3" unit="minute">
    <users interarrival="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="1000"></option>
  <option type="ts_jabber" name="domain" value="mydomain"></option>
  <option type="ts_jabber" name="username" value="sf201285427177"></option>
  <option type="ts_jabber" name="passwd" value="abc123"></option>
</options>

  <sessions>
   <session probability="100" name="xmpp-connection" type="ts_jabber">

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

    <thinktime value="2"></thinktime>

    <transaction name="authenticate">
      <request> <jabber type="auth_get" ack="no_ack"></jabber> </request>
      <request> <jabber type="auth_set_plain" ack="no_ack"></jabber> </request>
    </transaction>

    <thinktime value="30"></thinktime>

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

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

when i run the command ejabberdctl connected_users_number the connected users are always zero.Can someone figure out what's wrong in the xml file? thanks in advance

我发现问题出在身份验证上,我将其更改为SSAL身份验证,并且可以正常工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM