Chinaunix首页 | 论坛 | 博客
  • 博客访问: 354579
  • 博文数量: 51
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1189
  • 用 户 组: 普通用户
  • 注册时间: 2014-02-14 15:23
文章分类
文章存档

2017年(4)

2016年(7)

2015年(9)

2014年(31)

我的朋友

分类: 系统运维

2014-05-14 17:14:56

Tsung测试XMPP协议的集群配置

(一)Tsung的安装和配置

见 http://blog.chinaunix.net/uid-29485627-id-4241742.html


(二)配置hosts文件

[root@host141 ~]# cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1     localhost.localdomain localhost

::1           localhost6.localdomain6 localhost6

172.20.0.51   host51

172.20.0.52   host52

172.20.0.60   host60

172.20.0.61   host61

172.20.0.100  host100

172.20.0.141  host141

172.20.0.142  host142


(三)ssh免密码登录

见 http://blog.chinaunix.net/uid-29485627-id-4232161.html


(四)
配置文件

tsung.xml的全部内容如下:

  

  

  

  

  

  

  

  

  

 

  

 

  

   

    

   

  

 

  

  

 

  

  

  

  

  

 

  

 

     

   

       

       

   

   

  

  

 

  

 


(五)
疑难问题分析

1  ssh登录远程主机出现警告

http://blog.chinaunix.net/uid-29485627-id-4232920.html

2  客户端和服务器只能建立1013TCP连接

http://blog.chinaunix.net/uid-29485627-id-4241021.html

3  上面的连接问题解决之后,客户端和服务器只能建立28222TCP连接

http://blog.chinaunix.net/uid-29485627-id-4242142.html

4  badmatch, {error, duplicate_name}问题的解决方案

http://blog.chinaunix.net/uid-29485627-id-4242020.html

5  java.lang.OutOfMemoryError:GC overhead limit exceeded的解决方案

http://blog.chinaunix.net/uid-29485627-id-4252582.html

6  erlangslave:start返回结果为{error, timeout}

原因有两个:

一是/etc/hosts文件中有这一行

127.0.0.1     tixa localhost.localdomain localhost

172.20.0.141  host141  #这是本台主机的内网IP

二是主机名是tixa

解决方案:

127.0.0.1     tixa localhost.localdomain localhost中的tixa删除掉,并把主机名改为host141

http://blog.chinaunix.net/uid-29485627-id-4252703.html


(六)参考资料

http://my.oschina.net/jielucky/blog/167945

阅读(2953) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~