[LoadRunner]LoardRunner 接口压力测试场景常见错误 —转

问题1:
Error: Exception was raised when calling event-notify Vuser function in extension parameng.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION 
解决方法:

Exception was raised when calling event-notify Vuser function in extension parameng.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION

可能出现的原因:

Controller doesn’t support parameter files larger than 20 megs. 
  控制器不支持参数文件大于20M的大小
解决方法:Contact support and request the private patch created for this problem for LoadRunner 9.5.2, For LoadRunner 11 the issue is resolved on patch 4.

下载补丁

如无解决:其它方法:在C 盘新建一个TEMP目录,把环境变量TMP,TEMP的值设置成问题2:
Error:Abnormal termination, caused by mdrv process termination. 
解决办法: 把线程改为进程;
Run vusers as process instead of threads.Please go to Runtime Settings > Miscellaneous > Multithreading > RunVuser as a process.
 
问题3:
error :Two Way Communication Error: Function two_way_comm_post_message   原因:
共享内存缓存溢出,造成Controller和Load Generator之间通讯出现问题。 
解决方案: 修改两个配置文件。
1. $installation folder$\dat\channel_configure.dat
2. $installation folder$\launch_service\dat\channel_configure.dat 在这两个文件中的[general]部分下添加如下配置。
shared_memory_max_size=100 (修改共享内存为100MB,默认是50MB) 重新启动Controller,问题解决。


问题4:在Controller中运行脚本时出现异常:Failed to Stop. Reason: TimeOut 
原因: 初始化timeout错误:这个问题,原因是因为某个虚拟用户在transaction初始化时超时了。 解决办法:将controller------tools------timeout-----vuser---init时间设大些,默认为120,如设为600解决
此问题
 
问题5:(引起问题2的其他可能的原因) 
运行场景后,提示“Abnormal termination, caused by mdrv process termination”,服务端没有挂,仍可正常访问,且在运行场景时,没有自动重启。找下了,网上的答案原因可能是以下:
1. The Host machine ( Load generator) is running too many Vusers as a result
of which it system resources are being maximized. ( i.e. Consistent over 90% CPU and Memory utilization). The mdrv process does not get enough resources to process the request as a result it fails
2. If you have Custom C coding, there is a possibility of allocated memory not
being freed or memory violation errors which can lead to 'mdrv process termination'.
3. Replay the script with think time.
4. Turn off extended log when running the script in the controller.
5. Do not use the controller itself as the loadgenerator. i.e. have a remote
LoadGenerator.
6. Introduce iteration pacing, if running more than one iteration each vuser.

7. Open the file loadrunner installation\config\wlrun7.ini in a text editor,
modify the entry from: AgentMaxThreadsPerDriver=50 to AgentMaxThreadsPerDriver=20 or 10
8. Run Agent as process instead of service Launch command prompt and navigate
to C:\Program Files\Mercury\Loadrunner\Launch_service\bin and run the command magentserive -remove. This will remove the agent. Now run the command magentproc -install This will install the agent as a process.
9. Run vusers as process instead of threads.Please go to Runtime Settings >
Miscellaneous > Multithreading > RunVuser as a process.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值