loadrunner压测过程常出现错误和处理方法

【问题】Error -10776  Failed to find .cfg file

错误分析:在loadrunner打开脚本的状况下,运行磁盘清理工具,致使运行打开的脚本时,提示Mdrv error:Failed to find .cfg file MsgId:MERR-10777
解决方法:从其它文件夹拷贝3个文件到不能正常运行脚本的文件夹下:
default.cfg
default.usp
*.prm(将*的位置改成脚本的名字)
再次运行脚本,能够正常运行html

 

【问题】 Error -13874: missing newline in C:\Users\Administrator\AppData\Local\Temp\brr_YAR.13\netdir\C\TestingResult\StressTest.2\Script\交强险投保\username.dat

错误分析:The .dat file needs to have an empty line at the bottom of the file. Also, not sure if all your data is on one line,。
解决办法:Put your cursor on it innotepad/whatever you are using to edit your dat files, note that is an empty line at the bottom。web

 

【问题】Fatal Error -26000: Not enough memory (12320 bytes) for "new buffer in LrwSrvNetTaskItem::AllocSrvNetBuf".  Aborting

错误分析:报错的时候发现任务管理器里mmdrv.exe 内存占用一直增大,最红mmdrv.exe崩溃(LR兼容C,C语言中内存要手动释放)
解决办法:注意内存的使用,尽可能减小变量声明,new 的变量用完后要及时用free:服务器

 

【问题】回放时lr报错:Error -26488: Could not obtain informationabout submitted file

错误分析:通常状况下上传文件脚本,会报这个错误,缘由为找不到文件
解决办法:录制完脚本后,把要上传的文件放到脚本存放的文件夹里面,从新回放就ok网络

 

【问题】 Error -26601: Decompression function  (wgzMemDecompressBuffer) failed, return code=-5 (Z_BUF_ERROR), inSize=0,  inUse=0, 

问题缘由:这个错误为数据包较大,未下载完整或其余缘由致使解压错误。
解决办法:Runtime-setting--->Internet Protocol--->Preferences--->Options--->General->Network buffer size,设置为122880(默认值为12288)
     Runtime-setting--->Internet Protocol--->Preferences--->Options--->General->Default block size for Dom memory,设置为163840(默认值为16384)并发

 

【问题】Error-26608: HTTP Status-Code=504(Gateway Time-out)

解决办法:
1.在Vuser Generator中的Tools--->Recording Options...--->Recording--->HTTP-based script--->HTML Advanced按钮--->在Script type中选择A script containing explicit URLs only(e.g.web_url,web_submit_data)点击“ok”便可
2.runtime-setting, browser emulation, 取消选择download non-HTML resources便可socket

 

【问题】Error -26610: HTTP Status-Code=502 (Bad Gateway) for "https://***s.com/login/login"

 

【问题】Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s).

错误分析:对于HTTP协议,默认的超时时间是120秒(能够在Run-time Settings中修改),客户端发送一个请求到端尚未返回结果,则出现超时错误。
解决办法:Set the "Step Timeout caused by resources is a warning" Run-Time Setting to Yes/No to have this message as a warning/error, respectively高并发

 

【问题】 Error -27728: Step download timeout (120 seconds) has expired

错误分析:对于HTTP协议,默认的超时时间是120秒(能够在Run-time Settings中修改),客户端发送一个请求到端尚未返回结果,则出现超时错误。
解决办法:首先在运行环境中对超时进行设置,默认的超时时间能够设置长一些,再设置屡次迭代运行,若是还有超时现象,须要在“Runtime Setting”>“Internet Protocol:Preferences”>“Advanced”区域中设置一个“winlnet replay instead of sockets”选项,再回放是否成功工具

 

【问题】 Error -27791: Server "pcisstage.zsins.com" has shut down the connection prematurely

解决办法:测试中,并发200,300,400人时,LR没报错,在并发500人时,LR报错”Error -27791: Server "172.16.xx.xxx" has shut down the connection prematurely“,同时查看WEB服务器日志:出现这样一条信息:post

”INFO: Maximum number of threads (200) created for connector with address null and port 8081“测试

查看配置文件参数:

<Connector port="8080" protocol="HTTP/1.1" 
connectionTimeout="20000" 
redirectPort="8443" />

采用的是默认配置,这样在高并发状况下确定撑不住,因此修改参数配置以下:

<Connector port="8081" protocol="HTTP/1.1" 
maxThreads="500" acceptCount="500" connectionTimeout="20000" 
redirectPort="8443" />

从新测试,事物所有成功,系统也未报错。

出现”Error -27791: Server "172.16.xx.xxx" has shut down the connection prematurely“的缘由即有多是操做系统网络线程链接资源的缘由,也多是应用软件的缘由,当出现问题,随时查看系统日志,能帮助咱们更快的定位问题。

 

【问题6】Error -27796: Failed to connect to server "10.2.9.147:80":

解决办法:runtime-setting, browser emulation, 将默认勾选的simulate a new vuser on each iteration取消勾选

 

【问题】Error -29724 : Failed to deliver a p2p message from parent to child process, reason - communication error.

 

【问题】Error -30935 "Error: Failed to send data by channels – post message failed."

解决办法1: 在LR的controller负载生成器的菜单栏,单击【Diagnostics】》configuration》Web Page Diagnostics【Max Vuser Sampling 10%】设置为【Eenable】。
解决办法2:直接去掉勾选Enable the following diagnostics便可。

 

【问题】Error -35061: No match found for the requested parameter "CorrelationParameter_2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-35061]

解决办法1:能够用web_set_max_html_param_len增长参数长度,我试过到99999999共8位
web_set_max_html_param_len("9999999"); // 以消耗系统资源为代价

解决办法2:还有,你能够在web_reg_save_param_ex( 
"ParamName=CorrelationParameter_3", "LB=c", 
"RB=>\n<table border", 
后面 加上 "NotFound=warning", 保存编译下,就不回再提是错误了。 主要是自动关联形成的左右边界定位不精确,须要保存的值大

 

【问题】Error -60990 : Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.

相关文章
相关标签/搜索