Tips of Loadrunner

上海_Joanne 11:13:05
同志们,问个问题哈,我用3台负载机跑,并发用户20个,TPS在3000左右,昨天跑还好好的,为什么今天总有其中一台负载机报错,Abnormal termination, caused by mdrv process termination.谁能指点一下啊
上海_Joanne 11:13:28
跑的是webservice的

飞哥 11:16:05
Hi, Users facing this mdrv process abnormal termination can try one of these options found from one of the LR articles. The Loadrunner vusers are run by a process called 'mdrv.exe'. Whenever this process encounters errors due to various reasons it may terminate. Some of the possible reasons are as follows
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.

飞哥 11:16:24
follow this
飞哥 11:16:43
double checked
上海_Joanne 11:16:59
tks
独自等待 11:19:51
把线程改成进程试试  
独自等待 11:19:54
他才跑20啊

上海_Joanne 11:20:08
改过试了,还是报错
独自等待 11:20:23
是不是有加集合点  
大叔 11:20:39
你看下服务器资源使用情况
雪儿 11:20:45
是不是那台负载机所在操作系统是进程数限制.
大叔 11:20:46
或者客户端资源使用情况
独自等待 11:20:47
有集合点的吗  
上海_Joanne 11:20:52
没有加集合点
上海_Joanne 11:21:00
30%左右CPU
独自等待 11:21:02
才20啊大叔  
月色江声11:21:36
动态页面还是静态页面?如果动态的话20就不少了、
上海_Joanne 11:21:53
是web service的
飞哥 11:23:05
restart you service and try again
上海_Joanne 11:23:33
刚启的
上海_Joanne 11:23:43
重启后跑的
大叔 11:23:51
20 跑了一天了 说不定你的磁盘空间满了
月色江声11:23:54
清理日志,垃圾文件
大叔 11:23:58
或者说你的内存泄漏了
大叔 11:24:15
连接池 连接数没释放 都会引发这种问题
上海_Joanne 11:24:19
木有,我是同步实时监控的
雪儿 11:24:33
Open the file C:\WinNT\wlrun7.ini in a text editor, modify the entry from: AgentMaxThreadsPerDriver=50 to AgentMaxThreadsPerDriver=20 or 10

Joanne:你是不是修改了此参数值呢?
大叔 11:24:49
你这个错误多吗
上海_Joanne 11:24:50
我还没有尝试这个方法
上海_Joanne 11:24:54

上海_Joanne 11:25:18
开始是跑大概10分钟左右出现这个问题
上海_Joanne 11:25:24
现在是1分钟左右就会出现
上海_Joanne 11:25:33
 
大叔 11:25:40
跟脚本 和LR没关系的
雪儿 11:25:42
那你如果只让这种1台机器跑呢?


上海_Joanne 11:26:28
这个是不是20个并发压力太大了?
大叔 11:26:31
我是觉得你这个错误是不是服务器方面引起的
上海_Joanne 11:26:37
我降到15也还是报错
上海_Joanne 11:26:42
10个不报错
大叔 11:26:55
应用 或者数据库方面的问题
上海_Joanne 11:27:13
哦,好的,我在去研究一下,谢谢大家
飞哥 11:27:26
看下数据量配置的连接池和ws的连接池 
飞哥 11:27:40
是不是什么人修改过连接数的
上海_Joanne 11:27:40
看了,开发说够了
飞哥 11:27:52
你自己看下 
上海_Joanne 11:27:58

大叔 11:29:18
数据库 表?

charmer 11:32:21
应该是他本人的问题
charmer 11:32:28
不要总看服务器端
上海_Joanne 11:32:43
本人的问题是啥子啊?
charmer 11:32:52
也要看下你自己的脚本+客户端的问题
charmer 11:32:57
设置
charmer 11:33:20
大家的关注点,一出问题,就是找服务器的问题
飞哥 11:33:30
你别那么偏激的嘛 我是让他检查下的 
charmer 11:33:37
有的时候,是你自己的脚本本身有问题,或者你的设置有问题

上海_Joanne 11:34:41
嗯嗯,说的对,我在去看一下,谢谢大家

posted @ 2012-03-06 15:47  性能测试与优化  阅读(438)  评论(0编辑  收藏  举报