(2012-10-23 01:23:17)

转载

Action.c(58): Error -27796: Failed to connect to server "www.baidu.com:80": [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

.......2012.10.20.-----

网上的提示多为:LR压力测试遇到如上错误,跟据提示在注册表中已将TcpTimedWaitDelay  改为 1;MaxUserPort 改为 65534;并且重启电脑。运行后仍出现上面的错误。。。。但还是无法解决。

于是~~~~:
在 run-time setting/browser emulation中将simulate a new user on each iteration  选项去掉(默认是选中的)。重新运行一切正常,没有错误出现。

【复制博主的猜测:
猜测原因,客户端性能比较好,发出压力太快,所以把tcp/ip的连接或端口占满。在网上查了一下,xp好像默认开启15个tcp/ip。。。

去掉这个选项的意思是,始终使用一个tcp/ip链接,不断开,也就是开发人员所说的长链接或持久连接。   
短连接:建立连接-----发送和接收报文1-------关闭连接

长连接:建立连接-----发送和接收报文1.。。。2.。。。3-----关闭连接 】

妈的,累死了,搞了一整个晚上的connectify还是不能用,我cao...!又熬夜了,还一事无成,我的超级本啊,我的PPT啊。cao。。。不弄了,来去睡。

--------------------------------------------------------------------------------------------------

Error -27796: Failed to connect to server "125.93.51.230:8080": [10061]

Connection refused..

2013.05.31,这个27796一直是我心中的痛,试过网上所有的方法了,还是不行,我只能怀疑是不是我的客户端OS是win7的,所以才造成这种情况.....哎~!

认真分析这个错误,其实比较容易理解,就是连接不上服务,由于端口已经满了,那么自己的本机已经修改成65534,服务器已经修成成65534,那么这就是唯一的解决方式么?后来仔细思考,我找到了两种解决方式:

1、通过让每次迭代不启用新的连接,我想就可以解决此问题,经过验证,发现这个问题确实不发生了。操作如下,在controller的运行时设置中的-->browser Emulation-->不扣选simulate a new user on each iteration,这样运行时并发人数是多少,那么就启动多少个端口。还是上面的问题,是否勾选这个选项就一定会报27796错误么?

2、回答上面的提问,答案是不一定。如果你每次迭代启用新的端口,但是由于迭代次数*并发数<65534就不会报这个错误。如果设置的迭代次数*并 发数>65534,也不一定会出现这个错误,例如:并发人数为1000,平均响应时间为1s,那么也就是说1s会占用1000个端口,也就是说不到 66s时端口就会占满,如果服务器能在65s内关闭之前占用的端口之间的连接,也就是说65s超时时间,或者会话保持为65s以内,那么就能解决此问题。

以上提出两种解决方式,都可以解决27796error,一个是修改loadrunner中的controller设置,另一个就是设置服务器的超时时间在合理范围之内,不要太长,也不要太短。

---------------------------------

官方的troubleshooting:
查看工具的troubleshooting,如下:
Message Code 27796
Failed to connect to server 'hostname';port_ld': 'reason'.
Unable to connect to the specified server and port.
Troubleshooting
o     Try to address the reason provided for the connection failure.
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.
o     Ping the host/port.
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调大(如果这个值不是最大值的话)。
反复验证,问题解决。【我怎么试了好几种方法都失败啊。】
----------------------------------------------------connection time out---------------
Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out的解决办法:

解决办法一是:

(1)1. 修改run time setting中的请求超时时间Preferences 中点击Options 其中有三项的参数可以一次都修改了,HTTP-request connect timeout,HTTP-request receieve timeout,Step download timeout,分别建议修改为1000、1000、10000;run time setting设置完了后记住还需要在control组件的option的run time setting中设置相应的参数;

2. Browser Emulation 中的Download non-HTML resources 选项去掉,点击OK即可

(2)办法(一)不能解决的情况下,解决办法如下:

  设置runt time setting中的internet protocol-preferences中的advaced区域有一个winlnet replay instead of sockets选项,选项后再回放就成功了。切记此法只对windows系统起作用,此法来自zee的资料。

loadrunner error 27796 Failed to connect to server相关推荐

  1. Error -27796: Failed to connect to server ip地址: [10060] Connection timed out

    如果出现Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out 这样的错误,如 ...

  2. LoadRunner Error -27792: Failed to connect to server

    用Google打开,replay的时候报错 Action.c(74): Error -27792: Failed to connect to server "accounts.google. ...

  3. Php错误邮件提示linux,linux下phpmailer发送邮件出现SMTP ERROR: Failed to connect to server: (0)错误...

    在作项目的过程当中,后期客户提出了发送邮件的需求,既然客户有需求,那么没啥说的,上呗.php 通过网上的通常资料查找,PHPMailer这个插件貌似用起来不错,那就从github clone一份下来, ...

  4. samba Error NT_STATUS_CONNECTION_REFUSED Failed to connect with SMB1 -- no workgroup available

    连接同事的共享服务时报错: smbclient  -L ip -U user  WARNING: The "syslog" option is deprecated Enter W ...

  5. failed to connect to server /xx.xx.xx.xx:20880 client-side timeout问题分析并解决

    一次离奇的排查dubbo服务问题之旅. 首先是开启服务提供者,正常启动,后来启动服务调用者,总是报错.错误如下: 2018-06-04 11:17:24,956(7063 ms)[WARN ][Dub ...

  6. A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

    正确方式 事情是这样的,我的esp32今天到货了,于是开始下起程序来,第一次等了好久好久. 最后报错: A fatal error occurred: Failed to connect to ESP ...

  7. esp32烧录的时候出现报错Chip sync error :Failed to connect to ESP32: Timed out waiting for packet heade

    Chip sync error : Failed to connect to ESP32: Timed out waiting for packet header ESP32 Chip sync er ...

  8. 【TDengine】解决 failed to connect to server, reason: Mnode not found

    目录 1.遇到问题 2.问题解决 1.遇到问题 failed to connect to server, reason: Mnode not found 2.问题解决 删除原先相关文件,重新安装: r ...

  9. unable to connect to mks:Failed to connect to server XXXXXX:902

    问题描述: 在vClient中打开虚拟机控制台时提示,Unable to connect to the MKS : Failed to connect to server XXXXXX:902:此时无 ...

  10. aspera 下载ENA 数据报错Error: Client unable to connect to server (check UDP port and firewall

    在使用aspera下载ENA数据时报错 opt/.aspera/connect/bin/ascp  -QT -l 300m -P33001 -i opt/.aspera/connect/etc/asp ...

最新文章

  1. jupyter qtconsole 配置文件的生成和修改
  2. 使用代理软件之后其他软件不能联网的解决方法
  3. linux环境程序参数
  4. hash_map allocator
  5. CMM/CMMI的20年和敏捷十年
  6. Matlab线性规划(Linear Programming)
  7. 怎么保存python文件_python如何保存文本文件
  8. Docker系列教程26-Docker Compose控制服务启动顺序
  9. Proteus中8259的仿真[无dos,纯手工]
  10. spring调用webservice
  11. Unity一键修改NGUI字体的编辑器脚本
  12. HC-SR04 超声波原理图讲解与时序分析与arduino使用
  13. 关于视频录制动态贴纸的问题
  14. 《辉煌优配》科技股强势引领A股反弹 沪深两市日成交额再超万亿元
  15. C/C++趣味程序百例
  16. 技术胖React博客实战 - 新版问题解决方式整理
  17. 高新技术企业3年认定过期了怎么办
  18. Android 获取联系人和电话号码
  19. vue.js请求数据
  20. 深圳天瑞地安:规范的Java开发让你编程更舒心

热门文章

  1. 贝叶斯定理决策规则及Bayes思想总结
  2. 【Flutter】Dart数据类型之String
  3. 微信小程序开发的坑---新建页面or修改app.json
  4. Mac上运行windows,你还在用双系统or虚拟机?
  5. mysql InnoDB引擎支持hash索引吗
  6. 2018年内蒙古开出4.93亿环保罚单
  7. 通过上一节部署出来的 Windows instance 有时候会发现操作系统时间总是慢 8 个小时,即使手工调整好时间和时区,下次 instance 重启后又会差 8 个小时...
  8. HTML之一天学会html(常用标签+网页架构)
  9. 常见的MySQL命令大全
  10. Oracle DML NOLOGGING