linux作为负载机,报错:MsgId: MERR-10770
使用win7系统机器作为Controller,linux centos6.5的虚拟机作为Generator,在Controller的Load Generators是Ready状态,但是启动Generator的时候linux端日志报错如下:15/06/2015 19:55:48 Error: Communication error: Failed to bind socket while calling bind function. (sys error message - 权限不够)
15/06/2015 19:55:48 Error: Communication error: Failed to create a TCP server for the HTTP channel's server. (sys error message - 权限不够)
15/06/2015 19:55:48 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed.
15/06/2015 19:55:48 Warning: Failed to create "router" server.
windows端没有日志报错,在Controller端启动负载的时候报错如下:
Error: Vuser type "WS_SOAP" specified in /tmp/brr_XYHY72/netdir/D/LR/script/MIS/SelectQueryPerson/SelectQueryPerson.usr cannot be found (or its section is empty) in /opt/HP/HP_LoadGenerator/dat/mdrv.dat.
没有任何事务进行,打开日志也没有日志生成。脚本如下:
Action()
{
lr_start_transaction("queryPerson");
web_service_call( "StepName=queryPerson_101",
"SOAPMethod=CusService|CusServicePort|queryPerson",
"ResponseParam=responsequeryPerson",
"Service=CusService",
"ExpectedResponse=SoapResult",
"Snapshot=t1433918332.inf",
BEGIN_ARGUMENTS,
"arg0={queryPerson}",
//"arg0Specified=",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_end_transaction("queryPerson", LR_AUTO);
//lr_output_message("=====responsequeryPerson=======================%s", lr_eval_string("{responsequeryPerson}"));
//lr_eval_string( "{responsequeryPerson}" );
return 0;
}
脚本回放可以跑通。在负载时跑不通,请问是什么原因?
PS:LR 11.0
求助 首先确认是否关闭Linux虚拟机的防火墙
这是别人分享的,但愿对你有帮助
首先要再linux下安装LR,并且启动LR的负载:
$ cd /opt/HP/HP_LoadGenerator/bin
$ ./m_daemon_setup start
负载启动后,需要关闭linux环境下的防火墙,以下是两种方法的命令:
service 方式
开启: service iptables start
关闭: service iptables stop
iptables方式
查看防火墙状态:
/etc/init.d/iptables status
暂时关闭防火墙:
/etc/init.d/iptables stop
重启iptables:
/etc/init.d/iptables restart
这些都就绪后,就要开始对运行脚本的windows系统的服务端的设置
1、打开LR的controller页面,打开load Generator,add-》nama输入负载端的Ip,platform. 选择unix,添加完成后,选中,点击Details,把Unix Environment 下勾选Don't use RSJ,ok后,点击connect
2、stats状态由connecting变成Ready,说明已经可以连接负载机了,然后运行场景就ok啦
注明:如果是web协议的话,可以运行成功
如果java协议的话,LR不支持,会报错:The 'General-Java' type is not supported on 'LINUX' platforms 本帖最后由 mathtiancai 于 2015-6-16 18:05 编辑
地壳 发表于 2015-6-16 16:49
首先确认是否关闭Linux虚拟机的防火墙
这是别人分享的,但愿对你有帮助
首先要再linux下安装LR,并且启动 ...
防火墙确认是关闭状态,之前没有关闭的时候Load Generators中是Fail状态,排查后是防火墙原因,关了防火墙就变为Ready状态。
Load Generators中状态是Ready状态,但是运行负载的时候报错。需要测试的是webservices协议。
改用windows 7作为Generator后,Generator端Agent日志报错如下:
16/06/2015 16:52:09 Error: Communication error: The Server failed to receive message, while calling recv function, closing connection. (sys error message - WSAECONNABORTED)
16/06/2015 16:52:09 Error: Client LiMQ-PC;5588;3160 is not responding.
16/06/2015 16:52:09 Error: Communication error: The Client failed to send packet. The socket has been shut down.
16/06/2015 16:52:09 Error: Communication error: The Client failed to send packet. The socket has been shut down.
16/06/2015 16:52:09 Error: Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.
16/06/2015 16:52:09 Error: Communication error: The Client failed to send packet. The socket has been shut down.
Controller端报错如下:
Error: The user files were not transferred to the local load generator
Error (-81015): LR_VUG: Number of iterations is not defined in file 'C:\Users\LiMQ\AppData\Local\Temp\lr5tmpdirLVD.600\lrcfgyng.601\cfgHdQ.606'.
Error: Failed to create custom channel client on main thread(connection string: (-server_type=6)(-guid_identifier=gV1v30hYBkyuFYhbVNfpmg==)(-ll_server_index=5)).
继续求助。。。
PS:Load Generators中一直是Ready状态没有报错
mathtiancai 发表于 2015-6-16 18:03
改用windows 7作为Generator后,Generator端Agent日志报错如下:
16/06/2015 16:52:09 Error: Communica ...
我现在思考的是是不是linux作为肉鸡是不是不支持webservice协议 chenxiancx 发表于 2016-1-26 16:10
我现在思考的是是不是linux作为肉鸡是不是不支持webservice协议
你好,后来这个问题有解决方法么 mathtiancai 发表于 2015-6-16 18:03
改用windows 7作为Generator后,Generator端Agent日志报错如下:
16/06/2015 16:52:09 Error: Communica ...
你好,遇到了和你一样的问题,你后来有解决这个问题么
页:
[1]