aihuatesting 发表于 2009-2-9 13:01:00

LOADRUNNER socket协议录制脚本回放出错!

Action()
{
    lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=i-1790294bba0f4:8083",LrsLastArg);

    lrs_send("socket0", "buf0", LrsLastArg);

    lrs_receive("socket0", "buf1", LrsLastArg);

    lrs_send("socket0", "buf2", LrsLastArg);

    lrs_receive("socket0", "buf3", LrsLastArg);

    lrs_send("socket0", "buf4", LrsLastArg);

    lrs_receive("socket0", "buf5", LrsLastArg);

    lrs_send("socket0", "buf6", LrsLastArg);

    lrs_receive("socket0", "buf7", LrsLastArg);

    lrs_send("socket0", "buf8", LrsLastArg);

    lrs_receive("socket0", "buf9", LrsLastArg);

    lrs_send("socket0", "buf10", LrsLastArg);

    lrs_receive("socket0", "buf11", LrsLastArg);

    lrs_send("socket0", "buf12", LrsLastArg);

    lrs_receive("socket0", "buf13", LrsLastArg);

    lrs_send("socket0", "buf14", LrsLastArg);

    lrs_receive("socket0", "buf15", LrsLastArg);

    lrs_send("socket0", "buf16", LrsLastArg);

    lrs_receive("socket0", "buf17", LrsLastArg);

    lrs_send("socket0", "buf18", LrsLastArg);

    lrs_receive("socket0", "buf19", LrsLastArg);

    return 0;
}

Virtual User Script started
Starting action vuser_init.
vuser_init.c(12): lrs_startup(257)
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(12): lrs_create_socket(socket0, TCP, ...)
Action.c(14): lrs_send(socket0, buf0)
Action.c(16): lrs_receive(socket0, buf1)
Action.c(18): lrs_send(socket0, buf2)
Action.c(20): lrs_receive(socket0, buf3)
Action.c(20): Mismatch in buffer's length (expected 147 bytes, 280 bytes actually received, difference in 133 bytes)
Action.c(22): lrs_send(socket0, buf4)
Action.c(24): lrs_receive(socket0, buf5)
Action.c(24): Mismatch in buffer's length (expected 147 bytes, 280 bytes actually received, difference in 133 bytes)
Action.c(26): lrs_send(socket0, buf6)
Action.c(28): lrs_receive(socket0, buf7)
Action.c(28): Mismatch in buffer's length (expected 16359 bytes, 280 bytes actually received, difference in 16079 bytes)
Action.c(30): lrs_send(socket0, buf8)
Action.c(32): lrs_receive(socket0, buf9)
Action.c(32): Mismatch in buffer's length (expected 181 bytes, 4493 bytes actually received, difference in 4312 bytes)
Action.c(34): lrs_send(socket0, buf10)
Action.c(36): lrs_receive(socket0, buf11)
Action.c(36): Error : socket0 - Software caused connection abort. Error code : 10053.
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
vuser_end.c(12): lrs_cleanup()
Ending action vuser_end.
Vuser Terminated.

如上,回放总是出错Action.c(36): Error : socket0 - Software caused connection abort. Error code : 10053.

到底怎么解决的啊???

test1944 发表于 2010-8-30 14:48:41

修改tomcat连接池参数

查看启动的tomcat 连接池的设置参数MaxKeepAliveRequests,把这个参数的值设置为0(默认为100的),然后再回放,应该就没问题了

我123 发表于 2010-8-30 15:27:45

原帖由 test1944 于 2010-8-30 14:48 发表 http://bbs.51testing.com/images/common/back.gif
查看启动的tomcat 连接池的设置参数MaxKeepAliveRequests,把这个参数的值设置为0(默认为100的),然后再回放,应该就没问题了

请问怎么打开连接池?谢谢!

zhengaiqi 发表于 2013-6-5 14:28:50

楼主,发下解决方案

zhengaiqi 发表于 2013-6-7 11:34:32

关注中。。
页: [1]
查看完整版本: LOADRUNNER socket协议录制脚本回放出错!