tigase 性能测试,测试环境应用太多,只记录一个测试的方法;
具体性能可以参考官方的测试结果,而且有测试配置文件;
http://www.tigase.org/content/tigase-load-tests-again-500k-user-connections
点击查看tsung report 的页面最下面的XML Config file,下载下来跑下即可;
1.环境安装参考
参考:http://linyu19872008.iteye.com/blog/1605707(没有apt-get,参考下面链接安装erlang)
erlang安装参考:http://hxl2009.blog.51cto.com/779549/1224816
测试过,可行!
2.启动Tsung测试:
运行tsung,执行对应的配置xml,和输出到对应的log文件夹
[root@s2-5 tsung-1.5.0]# ./tsung.sh.in
Usage: tsung.sh.in <options> start|stop|debug|status
Options:
-f <file> set configuration file (default is ~/.tsung/tsung.xml)
(use - for standard input)
-l <logdir> set log directory where YYYYMMDD-HHMM dirs are created (default is ~/.tsung/log/)
-i <id> set controller id (default is empty)
-r <command> set remote connector (default is ssh)
-s enable erlang smp on client nodes
-p <max> set maximum erlang processes per vm (default is 250000)
-m <file> write monitoring output on this file (default is tsung.log)
(use - for standard output)
-F use long names (FQDN) for erlang nodes
-w warmup delay (default is 10 sec)
-v print version information and exit
-6 use IPv6 for Tsung internal communications
-h display this help and exit
另外tsung提供的一些例子,根据服务和domain做些简单调整就可以
文档参考:http://tsung.erlang-projects.org/user_manual/index.html
[root@s2-5 examples]# pwd
/home/swr/tsung-1.5.0/examples
[root@s2-5 examples]# ll |grep jabber
-rw-rw-rw- 1 root root 3134 Apr 3 11:24 jabber_muc.xml
-rw-r--r-- 1 1000 1000 3133 May 24 2013 jabber_muc.xml.in
-rw-rw-rw- 1 root root 3501 Apr 3 11:24 jabber_node.xml
-rw-r--r-- 1 1000 1000 3500 May 24 2013 jabber_node.xml.in
-rw-rw-rw- 1 root root 1721 Apr 3 11:24 jabber_privacy.xml
-rw-r--r-- 1 1000 1000 1720 May 24 2013 jabber_privacy.xml.in
-rw-rw-rw- 1 root root 1326 Apr 3 11:24 jabber_register.xml
-rw-r--r-- 1 1000 1000 1325 May 24 2013 jabber_register.xml.in
-rw-rw-rw- 1 root root 2756 Apr 3 11:24 jabber_roster.xml
-rw-r--r-- 1 1000 1000 2755 May 24 2013 jabber_roster.xml.in
-rw-rw-rw- 1 root root 4219 Apr 3 11:24 jabber.xml
-rw-r--r-- 1 1000 1000 4218 May 24 2013 jabber.xml.in
3.结果输出
tsung报告:
进入log目录生成报告
cd ~/.tsung/log/xxxxx
/usr/lib/tsung/bin/tsung_stats.pl (有时可能是 /usr/local/lib/tsung/bin/tsung_stats.pl)
生成 html 的压力测试报告
服务器运行情况:
tigase系统的运行情况,可以通过jdk/bin的jvisualvm.exe连接jmx端口(在tigase/etc/init.properities)
默认连接密码admin admin_pass(etc/jmxremote.password)有设置;
来源:oschina
链接:https://my.oschina.net/u/811247/blog/215804