WCF服务有时需要很长时间才能响应

WCF服务有时需要很长时间才能响应

本文介绍了WCF服务有时需要很长时间才能响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows Server 2003上托管的WCF服务,它是从Windows Server 2008计算机上调用的.通常,WCF服务的响应时间少于2秒.但是有时,要花超过一分钟的时间才能在客户端服务器上收到响应. 检查日志后,我注意到服务服务器在2秒内发送了响应,但客户端在1分钟后收到了响应.这种情况很少发生(每天大约2-3次).两台服务器都是负载平衡的.可能是什么原因 延迟收到回复?

I have a WCF service hosted on Windows server 2003 and it is called from windows server 2008 machine. Generally the response time for the WCF service is less than 2 seconds. But sometimes, it takes more than a minute to receive the response on client server. After checking the logs, I have noticed that the response is sent by the service server in 2 seconds but the client receives it after 1 minute. This happens very rarely (about 2-3 times a day). Both the servers are load balanced. What could be the reason for this delay in receiving the response?

 

此致

库纳尔

推荐答案

 

并确保频道连接正确关闭.

And make sure the Channel connection closed properly.

 

谢谢

Siva

 


这篇关于WCF服务有时需要很长时间才能响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 10:24