Trying to understand why I am getting a time delay of 2 seconds post get and pre Action, found with Glimpse

▼魔方 西西 提交于 2019-12-11 07:39:33

问题


I am using MVC3, ASP.NET4.5, EF5, C#, Razor, SQL Server 2008 R2.

I am analysing an Action which does some DML via LINQ and EF. No real issues, takes about 1 second. I am using Glimpse to monitor the application. However I notice that Server time is 3 seconds, and the controller Action time is 1 second, so 2 seconds are going missing. It is as if it is taking 2 seconds to instantiate the Controller class etc. The application is warmed up.

Here are the screenshots:

and here:

So summary of metrics is roughly:

Total 4 sec Client 1 sec Server 3 sec PreAction something ???? 2 sec Action 1 sec

This happens with the dev web server as well as on Win7/IIS with Precompiled code.

Thanks in advance.


回答1:


It might be a Glimpse drawback. Try to run application with and without it and see if there is any difference.



来源:https://stackoverflow.com/questions/26865711/trying-to-understand-why-i-am-getting-a-time-delay-of-2-seconds-post-get-and-pre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!