loadrunner error提示: Action.c(15): Error -27796: Failed to connect to server "10.9.34.101:80":
2012-05-01 11:07
761 查看
load runner transaction 提示error:
Action.c(15): Error -27796: Failed to connect to server "10.9.34.101:80": [10061] Connection refused
问题:
曾经遇到过一个问题,在一次性能测试过程中,使用http协议的多用户向服务器发送请求。设置了持续时间,出现错误为:27796, Failed to connect to server 'hostname';port_ld': 'reason'.10048.(凭记忆写的,不知道写错了没有)
分析
因为负载生成器的性能太好,发数据包特别快,服务器也响应特别快,从而导致负载生成器的机器的端口在没有timeout之前就全部占满了。在全部占满后,就会出现上面的错误。执行netstat –na命令,可以看到打开了很多端口。所以就调整TCP的time out。即在最后一个端口还没有用到时,前面已经有端口在释放了。
官方的troubleshooting:
查看工具的troubleshooting,如下:
均不是解决之道。
成功的解决方法:
在负载生成器的注册表HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters里,有如下两个键值:
TcpTimedWaitDelay
MaxUserPort
1,这里的TcpTimedWaitDelay默认值应该中是30s,所以这里,把这个值调小为5s(按需要调整)。
2,也可以把MaxUserPort调大(如果这个值不是最大值的话)。
反复验证,问题解决。
Action.c(15): Error -27796: Failed to connect to server "10.9.34.101:80": [10061] Connection refused
问题:
曾经遇到过一个问题,在一次性能测试过程中,使用http协议的多用户向服务器发送请求。设置了持续时间,出现错误为:27796, Failed to connect to server 'hostname';port_ld': 'reason'.10048.(凭记忆写的,不知道写错了没有)
分析
因为负载生成器的性能太好,发数据包特别快,服务器也响应特别快,从而导致负载生成器的机器的端口在没有timeout之前就全部占满了。在全部占满后,就会出现上面的错误。执行netstat –na命令,可以看到打开了很多端口。所以就调整TCP的time out。即在最后一个端口还没有用到时,前面已经有端口在释放了。
官方的troubleshooting:
查看工具的troubleshooting,如下:
[align=left]Message Code 27796 [/align] [align=left]Failed to connect to server 'hostname';port_ld': 'reason'.[/align] [align=left]Unable to connect to the specified server and port.[/align] [align=left]Troubleshooting [/align] [align=left]o Try to address the reason provided for the connection failure.[/align] o Try to access the application with a browser from the injector machine and from another machine (such as the recording machine). o Check that you accurately specified the correct host name and port. [align=left]o Ping the host/port.[/align] o Check if the server application you are trying to access is running. o If you used a hostname, check if it was resolved to the correct address. o Check if the server application is listening to the right port. |
成功的解决方法:
在负载生成器的注册表HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters里,有如下两个键值:
TcpTimedWaitDelay
MaxUserPort
1,这里的TcpTimedWaitDelay默认值应该中是30s,所以这里,把这个值调小为5s(按需要调整)。
2,也可以把MaxUserPort调大(如果这个值不是最大值的话)。
反复验证,问题解决。
相关文章推荐
- loadrunner error提示: Action.c(15): Error -27796: Failed to connect to server "10.9.34.101:80":
- loadrunner error提示: Action.c(15): Error -27796: Failed to connect to server "XXX"
- loadrunner:Action.c(4): Error -27796: Failed to connect to server "192.168.66.3:8080": [10060] Connection timed out
- Action.c(28): Error -27796: Failed to connect to server "xxxx": [10060] Connection timed out 问题分析 分类
- Action.c(58): Error -27796: Failed to connect to server "hostname"
- Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out
- 【LR11】Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误解决办法
- phpmailer发邮件提示SMTP->ERROR: Failed to connect to server的解决方法
- Openstack 出现"Failed to connect to server (code: 1006)“总结
- vncserver vnc client "Failed To Connect: Connection Refused (10061)"
- loadrunner 连接负载机时"Failed to connect to the load generator.Check the output window for more details"
- LoadRunner执行过程报错“Failed to connect to server "xxx.xxx.xxx.xxx:xx":[10060] connetion time out”
- Error -27796: Failed to connect to server
- 稳定性问题案例-Error -27796: Failed to connect to server
- LoadRunner - Failed to connect to server "127.0.0.1:8888"
- Error: Failed to connect to MySQL server: DBI connect(';
- [转载]Error -27796: Failed to connect to server
- Loadrunner连接负载机失败,提示"Failed to connect to the load generator.Check the output window for more detail
- Sqoop-1.4.6配置连接mysql提示ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- 解决 android "launch error failed to connect to remote vm"