2013-02-26 126 views
1

我正在运行负载测试以查看高峰时间(重负载)期间WCF服务的性能。我正在使用Step-Load,我们逐步推送虚拟用户。当我开始运行负载测试的前几分钟时,测试运行平稳,随着负载逐渐增加,经过一段时间后突然出现下面的错误触发,“测试方法”XYZ“抛出异常:负载测试 - 套接字连接在运行负载测试时中止

System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host". 

我试过很多的解决方案,我在网上找到,但其中非在配置文件为我工作。我试图改变默认的超时,MaxConnections最大,maxconcurrent连接等。我真的很感激任何帮助

回答

0

我以前在转移到WCF时遇到了类似的问题,它可能与WCF处理con的方式有关nections。

我的解决方案是将每个测试移动到单独的ApplicationDomain中。