I have a web application written in ASP.Net 3.0 using C #, the production machine is a Windows 2003 server with IIS 6.0 and SQL Server 2005.
Application structure
The structure of my ASP.net web application is shown below:
the root application in IIS (// localhost / es) includes shared pages, for example: master pages, theme, user control, image folder. the number of subprojects in the root application (// localhost / es / sub-project). delete web.config in subprojects to collect subproject files located in the bin folder of the root application (sub-project properties → compile → build output path: .. \ bin \ my application is a three-level web application (Biasness layer, data level and presentation level. In addition, each aspx page has its own code behind the cs file)
IIS Settings
Application Pool Processing a Workflow after "1740 Minutes" Idle Workflow Waiting after a Downtime of "20 Minutes" A Ping Worker Processes Every "30 Seconds"
Start-up time limit for a 90-second workflow Time-out limit for a 90-second workflow
Application configuration
Cached files with limited access in memory "500"
ASP cache files on disk "2000"
Application Deployment:
I am publishing a web application with all its files to a production server.
Problem:
The application starts quite slowly for the first time, it takes more than 10 seconds to load, however, each time the next page request is made it will be faster. I believe that the first time a page is requested, it compiles and usually takes longer than the other requestor, because the page is in Cache. The question is, why does it take time when compiling the page for the first time?
Attempts to solve the problem:
I tried to do the following:
- Deploy a copy of the required files to the production server.
- IIS settings changed, workflow shutdown timeout changed
- Disable trace
- Disable Session State
- Disable pageview state
- Set debug = false in web.config
- Creating a hello world subproject under the root application takes 5 seconds.
- Creating a standalone hello word web application, as described above, takes a lot of time to download.
- Remove the code in the page_load event handler, but it did not affect performance.
- Publish only the necessary file of the root application (the code is not written in the code behind) and the entire file in the source code of the subproject (the code is in the code behind),
However, the application still starts slowly, but then it becomes faster.
Please help diagnose and solve this problem.
performance web-applications iis-6 publish
Zahraa
source share