大鸭梨 发表于 2007-5-11 12:46:34

请帮我看看什么错?

我是新手,刚刚接触LoadRunner

请帮我看看出了什么错.
Virtual User Script started
Starting action vuser_init.
vuser_init.c(6): lrs_startup(257)
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(12): lrs_set_connect_timeout(10, 0)
Action.c(13): lrs_set_send_timeout(10, 0)
Action.c(14): lrs_set_recv_timeout(10, 0)
Action.c(16): lrs_create_socket(socket1, TCP, ...)
Action.c(16): Error : callConnect - Connection refused. Error code : 10061.
Action.c(16): Error : Timeout expired while trying to connect. Error code : 9017.
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
vuser_end.c(6): lrs_cleanup()
Ending action vuser_end.
Vuser Terminated.


是连接的TCP有问题吗?

[ 本帖最后由 大鸭梨 于 2007-5-11 12:47 编辑 ]

shanxi 发表于 2007-5-11 13:06:33

Problem Description: Error: "10061 - Connection refused" while running a scenario with Winsock Vusers

While running a scenario with Winsock Vusers, the user receives the error "10061 - Connection refused" while trying to connect to a socket.

This happens while trying to initialize a large number of Vusers at the same time.



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

Solution: Troubleshooting connection refused problems

1. Make sure that you are connected to the correct port and destination host address. If you have a network analyzer available, you can check if the destination port number and host address are what you expect.

2. Check that the server application is running on the destination host.

3. Check that the server application is listening on the right port.

4. If the problem occurs during a load test, it could be that there is insufficient size for the socket queue on the server side. To resolve this, you can

Change the server's application to handle a larger number of concurrent requests.
Manually enter something similiar to the following into the script:
   while (lrs_create_socket("socket2", "TCP", "RemoteHost=LDNTAS42:671", LrsLastArg) == 10061) ;

This will reexecute the statement until the socket can be connected to.


http://kb-web.mercury.com/KBA/KBAview.asp?Conceptid=13480&Product=LR

rickyzhu 发表于 2007-5-11 13:24:12

楼上的回复经典。

多到MERCURY的官方网站看看。

不过好像楼上是有ID的,这个需要买了MERCURY的服务才能获得。

[ 本帖最后由 rickyzhu 于 2007-5-11 13:26 编辑 ]

大鸭梨 发表于 2007-5-11 16:19:37

已经解决了 是IP换了 导致连不上 谢谢楼上的朋友们

zhengaiqi 发表于 2013-5-24 11:29:10

很着急,我也碰到了,不知道怎么解决
页: [1]
查看完整版本: 请帮我看看什么错?