本文介绍了未显示Tsung连接的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用tsung在xmpp ejabberd服务器上进行负载测试。每次运行tsung.xml文件时,没有用户连接。
这是我的tsung.xml文件

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>

当我运行命令 ejabberdctl connected_users_number 时,已连接的用户始终为零。有人可以找出xml文件中的错误吗?预先感谢

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身份验证,并且有效

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

这篇关于未显示Tsung连接的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 15:47