2014-03-27 38 views
1

我需要幫助來找到分析問題的策略。突然,我的應用程序開始表現得很奇怪。如何分析web服務延遲

彙總,我的應用程序

1. (.net 4.0) uses a webservice 
2. (svc, .net 3.5) that executes some procedures. I measured the time of procedures and total time is under the one second (call this time). 

大部分時間等待是幾毫秒:不夠公平。

有時雖然(而且不幸的是似乎是隨機的),等待可能會上升到幾分鐘,然後超時(正確);如果我檢查時間,它仍然不到一秒鐘。

我在哪裏失去這個時間?

我怎樣才能弄清楚發生了什麼?

你有什麼工具,提示或其他建議我去了解正在發生的事情嗎?

感謝

回答

3

在類似情況下,我會用下面的啓動:

注:下面的文章提供的WCF性能優化一個很好的概述: http://weblogs.asp.net/sweinstein/archive/2009/01/03/creating-high-performance-wcf-services.aspx

祝你好運。

+0

我看到,使用圍繞創建WCF客戶端的_using_語句大大改善了情況(問題發生得更少),您怎麼認爲這兩件事可以鏈接? – ff8mania

+0

以下文章可能會提供一些見解:http://blogs.msdn.com/b/wenlong/archive/2007/10/27/performance-improvement-of-wcf-client-proxy-creation-and-best-practices的.aspx – Seymour