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链接,不断开,也就是开发人员所说的长链接或持久连接。
短连接:建立连接-----发送和接

博客讲述了在使用LoadRunner进行压力测试时遇到的-27796错误,该错误是由于连接服务器失败导致。解决方案包括修改注册表中的TcpTimedWaitDelay和MaxUserPort值,改变Run-Time Settings中的Browser Emulation设置,以及调整请求超时时间。还探讨了Win7环境下可能的问题,并提供了两种解决方法:禁用每次迭代的新用户模拟和调整服务器超时时间。
最低0.47元/天 解锁文章
781

被折叠的 条评论
为什么被折叠?



