当前位置: 首页 > news >正文

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

c78d8180e9a5ead1264d764ecdbc8852.png

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

错误分析:在loadrunner打开脚本的情况下,运行磁盘清理工具,导致运行打开的脚本时,提示Mdrv error:Failed to find .cfg file MsgId:MERR-10777

解决方法:从其它文件夹拷贝3个文件到不能正常运行脚本的文件夹下:

default.cfg

default.usp

*.prm(将*的位置改为脚本的名字)

再次运行脚本,可以正常运行

【问题】 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。

【问题】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即可

【问题】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服务器日志:出现这样一条信息:

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

查看配置文件参数:

connectionTimeout="20000"

redirectPort="8443" />

采用的是默认配置,这样在高并发情况下肯定撑不住,所以修改参数配置如下:

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

后面 加上 "NotFound=warning", 保存编译下,就不回再提是错误了。 主要是自动关联造成的左右边界定位不精确,需要保存的值大

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

相关文章:

  • html命名侧边栏_html+css3+jquery右侧弹出侧边栏导航菜单
  • mysql atlas分表_数据切分——Atlas读写分离Mysql集群的搭建
  • mysql internal_MySQL Internal 札记
  • mysql中8warings_查看MySQL的warnings内容的命令
  • php mysql分页显示图片_php mysql 分页显示代码
  • python中三种分支结构的语句有_Python零基础入门学习09:程序控制流程:顺序结构和分支结构...
  • python蜂窝状六边形_CSS-蜂窝状展示区域(多个六边形)的一种实现方式
  • vue 图片自适应排列插件_vue+heatmap.js实现自定义图片热力图并且自适应
  • 阿里云服务器ubuntu安装mysql_Ubuntu安装MySQL-阿里云开发者社区
  • mysql 2日期什么类型的_【MySQL数据类型2之--日期时间类型】
  • mysql root命令_MySQL 修改 root 密码命令
  • mysql官网指南_MySQL入门指南
  • python 下载图片_Python下载图片
  • repalace mysql 换行_js-repalaceRegexp
  • mysql 排它后码锁_mysql 排它锁之行锁、间隙锁、后码锁
  • css布局,左右固定中间自适应实现
  • ES6--对象的扩展
  • SpringBoot几种定时任务的实现方式
  • 力扣(LeetCode)965
  • 嵌入式文件系统
  • 使用前端开发工具包WijmoJS - 创建自定义DropDownTree控件(包含源代码)
  • 微信小程序上拉加载:onReachBottom详解+设置触发距离
  • 学习笔记:对象,原型和继承(1)
  • 一个6年java程序员的工作感悟,写给还在迷茫的你
  • 3月7日云栖精选夜读 | RSA 2019安全大会:企业资产管理成行业新风向标,云上安全占绝对优势 ...
  • 阿里云ACE认证之理解CDN技术
  • 从如何停掉 Promise 链说起
  • ###项目技术发展史
  • #ubuntu# #git# repository git config --global --add safe.directory
  • (13)Hive调优——动态分区导致的小文件问题
  • (6)STL算法之转换
  • (ibm)Java 语言的 XPath API
  • (react踩过的坑)Antd Select(设置了labelInValue)在FormItem中initialValue的问题
  • (八)光盘的挂载与解挂、挂载CentOS镜像、rpm安装软件详细学习笔记
  • (附源码)springboot学生选课系统 毕业设计 612555
  • (最优化理论与方法)第二章最优化所需基础知识-第三节:重要凸集举例
  • ..回顾17,展望18
  • .net core 6 集成 elasticsearch 并 使用分词器
  • .NET Core MongoDB数据仓储和工作单元模式封装
  • .Net 路由处理厉害了
  • .NET/C# 获取一个正在运行的进程的命令行参数
  • .vollhavhelp-V-XXXXXXXX勒索病毒的最新威胁:如何恢复您的数据?
  • /usr/bin/perl:bad interpreter:No such file or directory 的解决办法
  • @SuppressWarnings注解
  • [ NOI 2001 ] 食物链
  • [20190416]完善shared latch测试脚本2.txt
  • [AIGC] 如何建立和优化你的工作流?
  • [Angular 基础] - 指令(directives)
  • [AX]AX2012 AIF(四):文档服务应用实例
  • [BUUCTF]-PWN:[极客大挑战 2019]Not Bad解析
  • [C# 基础知识系列]专题十六:Linq介绍
  • [C\C++]读入优化【技巧】
  • [CISCN2019 华东南赛区]Web4
  • [Deepin 15] 编译安装 MySQL-5.6.35
  • [Excel]如何找到非固定空白格數列的條件數據? 以月份報價表單為例