Skip to content

Instantly share code, notes, and snippets.

@developerworks
Created March 20, 2015 15:14
Show Gist options
  • Save developerworks/a15f2ced51a7ce5659d9 to your computer and use it in GitHub Desktop.
Save developerworks/a15f2ced51a7ce5659d9 to your computer and use it in GitHub Desktop.
Why the configuration file is not work for ejabberd, is there any changes i chould be noticed.
<?xml version="1.0"?>
<!--
http://my.oschina.net/jielucky/blog/168320
http://cryolite.iteye.com/blog/376893
http://cryolite.iteye.com/blog/378758
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_max_syn_backlog = 65535
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_rmem = 4096 4096 16777216
net.ipv4.tcp_wmem = 4096 4096 16777216
net.ipv4.ip_local_port_range = 1025 65000
fs.file-max = 65535000
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.core.netdev_max_backlog = 30000
net.ipv4.tcp_mtu_probing = 1
-->
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<!--<!DOCTYPE tsung SYSTEM "/Users/hezhiqiang/ElixirProjects/tsung/tsung-1.5.1/tsung-1.0.dtd">-->
<tsung loglevel="error" dumptraffic="false" version="1.0">
<clients>
<client host="scm" maxusers="100000">
<ip value="192.168.8.200"></ip>
</client>
<!--<client host="t35" maxusers="120000">-->
<!--<ip value="192.168.8.35"></ip>-->
<!--</client>-->
<!--<client host="t36" maxusers="120000">-->
<!--<ip value="192.168.8.36"></ip>-->
<!--</client>-->
<!--<client host="t37" maxusers="120000">-->
<!--<ip value="192.168.8.37"></ip>-->
<!--</client>-->
<client host="compile" maxusers="100000">
<ip value="192.168.8.31"></ip>
</client>
<!--<client host="c30" maxusers="120000">-->
<!--<ip value="192.168.8.30"></ip>-->
<!--</client>-->
<!--<client host="c32" maxusers="120000">-->
<!--<ip value="192.168.8.32"></ip>-->
<!--</client>-->
<!--<client host="c40" maxusers="120000">-->
<!--<ip value="192.168.8.40"></ip>-->
<!--</client>-->
<!--<client host="c41" maxusers="120000">-->
<!--<ip value="192.168.8.41"></ip>-->
<!--</client>-->
</clients>
<servers>
<server host='master.hezhiqiang.info' port='5222' type='tcp'/>
</servers>
<load>
<arrivalphase phase="1" duration="45" unit="second">
<users maxnumber="20000" interarrival="0.002" unit="second"></users>
</arrivalphase>
</load>
<options>
<option type="ts_jabber" name="global_number" value="200000"></option>
<option type="ts_jabber" name="userid_max" value="200000"></option>
<option type="ts_jabber" name="domain" value="master.hezhiqiang.info"></option>
<option type="ts_jabber" name="username" value="u"></option>
<option type="ts_jabber" name="passwd" value="p"></option>
<option name="ports_range" min="1025" max="65535"/>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request>
<jabber type="connect" ack="no_ack"></jabber>
</request>
<thinktime value="5"></thinktime>
<transaction name="authenticate">
<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>
</transaction>
<request>
<jabber type="presence:initial" ack="no_ack"/>
</request>
<thinktime value="60"></thinktime>
<request>
<jabber type="close" ack="no_ack"></jabber>
</request>
</session>
</sessions>
</tsung>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment