Debugging ASP.NET MVC Site Performance Issues

I have an ASP.NET MVC application that seems to work fine on my machine, but not when it is running on the server. Does anyone have any tips on figuring out where a performance bottleneck could be, or any general tips? Will incorrect routing configuration slow down the application?

I added instructions HttpContext.Current.Trace.Writein all the code, but they do not appear in the application trace log ( /trace.axd)? How can you write on this? I want to see which parts can be slow when the application is in use, without having to enable page tracing. When page tracing is enabled, it records information for each partial view that can be used.

I use a third-party library (MvcSiteMap) that I use, but I really can’t be sure, since it is not so bad on my local PC, but I can not debug the code directly on the server. The application does not freeze, loading a page takes only a few minutes.

+3
source share

Source: https://habr.com/ru/post/1774575/


All Articles