(LoadRunner)Error code 10053,Software caused connection abort

测试场景: tomcat 做server, 使用LR 测试上传文件的性能。

LoadRunner总是报错:“Action.c(81): Error -27792: Failed to transmit data to network: [10053] Software caused connection abort”

 

解决方案:

(1)添加配置 maxKeepAliveRequests=”-1”

Description: The maximum number of HTTP requests which can be pipelined until the connection is closed by the server. Setting this attribute to 1 will disable HTTP/1.0 keep-alive, as well as HTTP/1.1 keep-alive and pipelining. Setting this to -1 will allow an unlimited amount of pipelined or keep-alive HTTP requests. If not specified, this attribute is set to 100.

 

(2)适当加大 connectionTimeout="60000"

Description: The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. The default value is 60000 (i.e. 60 seconds).

 

 

这个方案的思路来自一篇网络文章: http://www.51testing.com/?60038/action_viewspace_itemid_3786.html

关于tomcat的HttpConnector配置请参见官方文档: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

你可能感兴趣的:(apache,html,tomcat,c,loadrunner)