LoadRunner运行场景报错处理方式

本文详述了LoadRunner在性能测试过程中遇到的多种错误,包括Vuser数量限制、Socket描述符未找到等问题,并提供了具体的解决步骤,如修改运行时设置、更新mdrv.dat配置等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Erorrs:

Massege code-84812:The load generator is currently running the maximum number of Vusers of this type

解决办法:

Massege code-82801:Abnormal termination, caused by mdrv process termination.

Massege code-82208:Load Generator failed.

Massege code-60990:Error: Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.

Massege code-29977:Error: Failed to kill process "lr_host_balancer.exe". Reason: 拒绝访问。

Massege code-29724:Error: Failed to deliver a p2p message from parent to child process, reason - communication error.

Action.c(4): web_custom_request("test_get") highest severity level was "ERROR", 0 body bytes, 0 head

 

Action.c(3): Error -27796: Failed to connect to server "10.105.26.117:46489": [10061] Connection refused

连接服务器失败,服务器崩溃了。

 

Loadrunner--运行场景报Socket descriptor not found错误

 

Action.c(3): Error: Socket descriptor not found.  Hint: the problem might be solved applying the following: (1) Update Run-Time Settings to Run Vuser as a process. (2) Add the following line into mdrv.dat, [lr_socks] section: 'ExtCmdLineConc=-UsingWinInet Yes'.

今天早上在使用LoadRunner时,报了如下的错误,开始并未看错误以为是录制问题引起,就重新录制了一遍,简单施压看看错误是否还有,结果错误仍然有,如下所示: Error: Socket descriptor not found. Hint: the problem might be solved applying the following:

(1) Update Run-Time Settings to Run Vuser as a process.

(2) Add the following line into mdrv.dat, [lr_socks] section: ‘ExtCmdLineConc=-UsingWinInet Yes‘.

根据提示进行如下处理:

思路:

1.修改Run-Time Settings(默认是线程);

2.看mdrv.dat文件,搜索后在loadrunner安装目录下dat文件中;

解决方法详细如下:

1.在run-time setting中的Miscellaneous项中设置“run vuser as a process”;

2.在安装目录的dat文件夹中查找mdrv.dat,找到[lr_socks]段,在最后添加“ExtCmdLineConc=-UsingWinInet Yes”一句; 然后再选择了expert mode后,选择option->general,选中“ip address allocation per process”;

3.运行Controller施压,如果仍然报错,在菜单栏中点击Diagnostics->configuration项,将web page diagnostics项disable掉。

 

在解决问题中突然想起上周在使用loadrunner时,使用了虚拟IP(IP欺骗)。用完后忘记回复如初了。虽然这样解决了当下,但是还是需要将虚拟IP(IP欺骗)去掉

 

### 解决LoadRunner压测过程中的82207错误 当遇到LoadRunner测试过程中出现的82207错误时,这通常意味着网络连接存在问题或配置不正确。具体来说,该错误可能由以下几个原因引起: - 测试环境中存在防火墙或其他网络安全设备阻止了必要的通信。 - 被测系统的服务器端口未开放或被占用。 - 客户端与服务器之间的网络路径不稳定。 针对此问题的具体解决方案如下: #### 配置环境设置 确保客户端和服务器之间没有任何阻碍正常通讯的因素。如果是在企业内部网络环境下工作,则需确认公司防火墙策略允许LR工具发出的数据包通过[^1]。 #### 修改运行时设定 进入VUGen编辑器,在“Runtime Settings”选项卡下调整相关参数以适应目标应用的要求。特别是对于Web HTTP/HTML协议类型的脚本而言,适当修改“Pacing”,“Think Time”以及“Log”级别可以帮助减少不必要的延迟并提高成功率[^2]。 #### 使用代理模式重试 有时直接从本地计算机发起请求会受到各种限制,这时可以考虑利用代理服务器来绕过这些障碍。例如,可尝试开启Fiddler等HTTP调试代理软件作为中介转发流量给实际的目标站点;另外也可以按照官方文档指导切换至不同的录制方式(如WinInet, Web API),看能否解决问题[^3]。 ```python # Python示例代码用于展示如何更改某些Python库的日志等级, # 这里仅作示意用途,并不是解决82207错误的实际方法之一。 import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值