您的位置:首页 > 其它

Loadrunner使用遇到的问题总汇,不断更新~

2013-02-06 14:04 357 查看

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,如下

<Connector port="8080"

maxThreads="150"



................................ 把maxThreads值再改大一点

顺便解释一下tomcat中<Connector>标签中各个属性的含义:

<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.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: