loadrunner11 报Abnormal termination, caused by mdrv process termination的解决方法.
来源:互联网 发布:moga算法 编辑:程序博客网 时间:2024/06/06 10:01
转自:http://loadrunner.wetpaint.com/page/Abnormal+termination,+caused+by+mdrv+process+termination
- 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
- 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'.
- Replay the script with think time.
- Turn off extended log when running the script in the controller.
- Do not use the controller itself as the loadgenerator. i.e. have a remote LoadGenerator.
- Introduce iteration pacing, if running more than one iteration each vuser.
- Open the file C:\WinNT\wlrun7.ini in a text editor, modify the entry from: AgentMaxThreadsPerDriver=50 to AgentMaxThreadsPerDriver=20 or 10
- 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.
- Run vusers as process instead of threads.Please go to Runtime Settings > Miscellaneous > Multithreading > RunVuser as a process.
另外,注意下负载机的连接数是否过高,往往测试TPS较高的应用或是Client本身导致连接来不及释放会引起mmdrv进程Crash。当然加入Thinktime或者Pacing Time是种办法,一般最小可设置0.1~1s,但毕竟指标不治本,需要更多的用户来测试系统最大处理能力。
-------------------------
问题,LR对webservice的某个接口执行少量并发数的场景时,controller出现Abnormal termination, caused by mdrv process termination.大量错误,导致线程终止了请求,但服务器和负载机的资源都属正常。
解决方法和思路:为了解决此问题,查阅了网上较多资料和官网解释,大同小异,也进行一一尝试,最终无果,但意外发现资料中,除了一些参数设置修改以外,其中有条非常特别解释:“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”(这里大概的意思是:负载机的资源已经达到瓶颈,且无法接收响应回来的数据,导致process终止),于是萌生猜想,是不是服务器中数据库和tomcat之间出现了什么异常,导致数据无法响应给客户端,但按照常理,如果此两者出现异常,应该也是会相应http状态码返回客户端的,但非常异常的是controller只出现大量线程终止错误,为了验证此时的矛盾,于是请求开发协助,并在此接口的可能出现问题的地方加上相应日志,运行后,不出意料,结果正如我们的猜想,可能是数据库由于负载压力过大,导致了数据库与tomcat之间连接异常,tomcat却将异常信息返回给客户端,而客户端却无法识别响应,导致了controller出现线程终止的情况,为了解决此问题,开发修改了程序,将成功的请求就返回一个整型1,失败或异常请求就返回一个整型0,经过多次实践验证运行,都未出现上述线程终止的问题了。
---------------------------修改了
LR
中的
D:\Program
Files\Mercury\LoadRunner\dat\protocols
中的
http.lrp
信息,
在
[Vugen]
下面新加一条
MaxThreadPerProcess=
要设置的
vuser
数量
。
- loadrunner11 报Abnormal termination, caused by mdrv process termination的解决方法.
- Abnormal termination, caused by mdrv process termination问题解决办法
- Abnormal termination, caused by mdrv process termination问题解决方法
- loadrunner ——Abnormal termination, caused by mdrv process termination
- LR 测试webservice协议 并发运行报错:Abnormal termination, caused by mdrv process termination 引起的感想
- LR 测试webservice协议 并发运行报错:Abnormal termination, caused by mdrv process termination 引起的感想
- 性能测试培训总结-Abnormal termination, caused by mdrv process termination
- loadrunner性能测试错误:Abnormal termination, caused by mdrv process termination
- 【loadrunner】解决controller出现Abnormal termination, caused by mdrv process termination.大量错误,导致线程终止了请求
- Error:Abnormal build process termination:
- iDEA启动后报Error:Abnormal build process termination
- idea错误 Error:Abnormal build process termination:
- android Error:Abnormal build process termination:
- Vista/Windows7 开机显示 abnormal termination 的解决方法
- 电脑出现abnormal termination的解决办法
- ado abnormal program termination
- abnormal program termination
- Keil SIGABRT Abnormal termination
- 几个NP-完全问题的证明
- 生成对抗网络GANs理解(附代码)
- Hololens——Assetbundle处理
- 线性表顺序存储设计与实现_框架搭建
- Hbase之批量数据写入
- loadrunner11 报Abnormal termination, caused by mdrv process termination的解决方法.
- FrameLayout
- 玲珑Round #7-1071 - Boring Game
- pat-bl-1028
- Multi-view Convolutional Neural Networks for 3D Shape Recognition
- Android音视频学习第1章:使用ffmpeg进行视频解码
- 解释器模式--Excel公式嵌套
- 性能测试2-性能测试流程
- Rxjava2.0和Retrofit简单封装使用