Share via

Slow Application

ANB 181 Reputation points
2021-11-18T19:06:55.843+00:00

My project MVC has grown and now I see some slowness increasing.
What would be the best way to check the entire system (MVC, .NET, JAVASCRIPT calls) and figure out where the bottleneck or slowness is coming from ?
Setting something like StopWatch for each method ? or there is something better ?

Thanks

Developer technologies | ASP.NET | Other

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,106 Reputation points
    2021-11-19T02:14:18.39+00:00

    Hi @ANB ,
    As far as I think,If your application is the first, slow is normal.You could check your performance:

    1. You could add some debugging statements that spit out elapsed time in your Application_Start() method or any other applicable location to try to catch what's taking the longest.
    2. You could create a completely clean demo project and deploy it. See if it suffers from the same problem. If it doesn't try introducing more and more of your real code until you detect a slowdown.

    Best regards,
    Yijing Sun


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.