ASP.NET Performance Issue

I am working on an ASP.NET 3.5, C #, ASP.NET AJAX, JQUERY web application, which currently has some performance issues. I have a screen with control over the form view, and when I edit the form and save it for the first time, POST takes 4.89 seconds, and when I perform the same operation again, POST takes only 1.09 seconds. What could be causing this strange behavior?

Note. I use firebug and I ignore page load time (e.g. js, images).

EDIT: I am using a web deployment project to precompile the application.

+3
source share
3 answers

Are you on your local machine or on a production machine?

If this is the first time you create, remember that .NET applications are usually quite slow when loading the first page. After that, he usually rises.

+2
source

Make sure you have the <compilation debug = "false" /> within the <system.web> element of your Web.config files. This is a common issue that Scott Hanselman even mentioned in a recent post about the most common ASP.NET issues that MS support people face:

http://www.hanselman.com/blog/MostCommonASPNETSupportIssuesReportingFromDeepInsideMicrosoftDeveloperSupport.aspx

+2
source

If you pre-copy the ASP.NET application, this will improve the performance of the first request. You can do this using the Publish tool in Visual Studio.

+1
source

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


All Articles