LoadRunner进行性能测试时遇到的问题汇总

1. Action.c(4): Error -27796: Failed to connect to server "10.10.10.2:81": [10048] Address already in use
Try changing the registry value 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\TcpTimedWaitDelay to 30
and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\MaxUserPort to 65534
and rebooting the machine
See the readme.doc file for more information

 

2.Action.c(4): Error -26610: HTTP Status-Code=502 (Bad Gateway) for "http://10.10.10.2:81/pa/newstock/hq/index.jsp"

 

 

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

解决办法:在C盘下新建一个TEMP目录,把环境变量TMP,TEMP的值设置成C:\TEMP就ok

 

4.   Action.c(33): Error: C interpreter run time error: Action.c (33):  Error -- Unresolved symbol : vuser_end.

 

 

5.Action.c(77): Continuing after Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)

解决办法:设置loadrunner9.1的设置过程,run-time setting---internet protocal----preferences----advanced--打开options--修改General中Step download timeout(sec):600.
这个值根据自己的实际需要而设置。我这里的场景是要下载一个附件,手工操作大概是3.4分钟。

 

6.Action.c(33): Error: C interpreter run time error: Action.c (33):  Error -- Unresolved symbol : vuser_end.

--------意思是:user_end部分的语法错误。比如缺少下面这段中的某行:

user_end()

{

     return 0;

}

 

7.Connection to load generator failed.

Error: Process "lr_bridge.exe" was not created on remote host "192.168.170.161". Reason: communication error. Make sure the Agent process or service is running on the remote machine..    [MsgId: MERR-29987]

Error: Communication error: Failed to connect to remote host [server IP: 192.168.170.161].    [MsgId: MERR-10343

---------原因在于:使用controller加载另外的负载机,提示failed。

解决办法:出现这种情况都是因为防火墙等之内的限制了。负载机是windows2008,装的是LoadRunner9.5,上面没有另外装防火墙或者是杀毒软件。所以关闭掉windows防火墙(控制面板---防火墙---关闭)。


Loadrunner使用遇到的问题总汇

注:一下问题均出现在windows server 2003,loadrunner 11
问题1:
Action.c(4): Error -27796: Failed to connect to server "ip:port": [10048] Address already in use
Try changing the registry value 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\TcpTimedWaitDelay to 30
and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\MaxUserPort to 65534
and rebooting the machine
See the readme.doc file for more information
解决办法:
在负载生成器的注册表HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters里,有如下两个键值:
TcpTimedWaitDelay
MaxUserPort
1,这里的TcpTimedWaitDelay默认值应该中是30s,所以这里,把这个值调小为5s(按需要调整)。
2,也可以把MaxUserPort调大(如果这个值不是最大值的话)。
 
问题2:
Action.c(4): Error -27796: Failed to connect to server"ip:port": [10060] Connection timed out
解决办法:
出现这个问题很可能是访问应用部署的web容器允许最大连接量太低,我使用的是tomcat容器,所以修改tomcat的配置文件server.xml,如下
      maxThreads="150"
................................                 把maxThreads值再改大一点
顺便解释一下tomcat中标签中各个属性的含义:
<connector   port="8080"   
      maxThreads="150"     
      minSpareThreads="25"     
      maxSpareThreads="75"   
      acceptCount="100"   
      />   
  maxThreads="150"     表示最多同时处理150个连接   
  minSpareThreads="25"     表示即使没有人使用也开这么多空线程等待   
  maxSpareThreads="75"     表示如果最多可以空75个线程,例如某时刻有80人访问,之后没有人访问了,则tomcat不会保留80个空线程,而是关闭5个空    的。   
  acceptCount="100"   当同时连接的人数达到maxThreads时,还可以接收排队的连接,超过这个连接的则直接返回拒绝连接。
 
问题3:
Failed to Initialize. Reason: TimeOut
 
问题4:
Failed to Run. Reason: TimeOut
 
问题5:
Error: Communication error: Linked List client failed to initialize server pointer.


服务器没有响应
2. 没有目标提供这个服务
3. 发送包失败,原因是通讯错误
4. 应该是收发包失败吧
5. 超时
综上,确实是服务器down掉了

转载于:https://www.cnblogs.com/hzybk/p/8940570.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值