tigase 性能測試,測試環境應用太多,只記錄一個測試的方法; html
具體性能能夠參考官方的測試結果,並且有測試配置文件; node
http://www.tigase.org/content/tigase-load-tests-again-500k-user-connections shell
點擊查看tsung report 的頁面最下面的XML Config file,下載下來跑下便可; 服務器
參考:http://linyu19872008.iteye.com/blog/1605707(沒有apt-get,參考下面連接安裝erlang) dom
erlang安裝參考:http://hxl2009.blog.51cto.com/779549/1224816 ssh
測試過,可行! 性能
運行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作些簡單調整就能夠 this
文檔參考:http://tsung.erlang-projects.org/user_manual/index.html spa
[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
進入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)有設置;