Friday, November 27, 2009 3:22 PMIs there a way to measure time that request spends on WCF Host in a reliable way?
On client I can do it by comparing two DateTime objects that are created before and after WCF service call.
What I have already done is: I have turned on trace on WCF Host and I have investigated it with SvcTraceViewer.
What I did afterwards, is I had compared request time on client (time that application spends in WCF Service call) with durations from trace file. To my suprise I came accross such a results:
- client usually spends 15 seconds in service call
- according to trace file from server , request usually consumes about 3-4 seconds
My question is : what is happening with 15-4=11seconds? Is it time needed to encode/decode message and transfer it (I use 100MB LAN). My point is, that durations from client and server are preety confusing - I mean, difference is huge.
Saturday, November 28, 2009 4:10 AMHi,
What is your Binding,Service Mode,Security Mode and Server information?
Did you use security in data transmittion?
How is your Datasize?
All these were important to the Test result.
Frank Xu Lei--谦卑若愚，好学若饥
Focus on Distributed Applications Development and EAI based on .NET
欢迎访问老徐的中文技术博客：Welcome to My Chinese Technical Blog
欢迎访问微软WCF中文技术论坛：Welcome to Microsoft Chinese WCF Forum
欢迎访问微软WCF英文技术论坛：Welcome to Microsoft English WCF Forum
Thursday, December 03, 2009 6:57 AMModerator
As for the WCF's processing from client to service, I suggest you have a look at the following document which provide a detailed explanation on WCF extension points and the entire processing pipeline. Thus, you can have ideas on those stages that may take significant time in the entire request/resposne processing lifecycle.
#Understanding Windows Communication Foundation Extensibility
Also, for measuring program execution time, the visual studio profiling tools can help on .NET application's performance measurement(such as get hot functions or long running functions):
#Profiling WCF/WF Applications with VS Performance Profiler
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Riquel_DongModerator Friday, December 04, 2009 12:49 AM