Tsung connected users are not shown

别来无恙 提交于 2019-12-24 21:15:50

问题


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


回答1:


I figured out the problem there was a problem with the authentication i changed it to SSAL authentication and it works



来源:https://stackoverflow.com/questions/20190312/tsung-connected-users-are-not-shown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!