ASP. NET startup optimization settings in IIS, asp. netiis
ASP. NET startup optimization settings in IIS
Conventions:
IIS = Internet Information Services Manager
Summary
Because ASP. the first time the NET program was started, it took too long, at least three times the time of the second visit. This is because the program was started on demand, in addition, the program is automatically closed after being idle for a period of time.
Therefore, this document is specially designed to show you how to make ASP. NET programs better at the first startup (or restart), at least close to the second access speed.
IIS 8
If the system is Windows Server 2012 or later, the system's built-in IIS version is 8
The version of IIS can be found in the IIS manager window, Help> About (About), in the red box.
Setting on IIS8 is simple.
There are three main steps:
Application pool-Advanced Settings-Startup Mode: AlwaysRunning
Application pool-Advanced Settings-Process Model-idle Timeout: 1740 (minutes)
Application-Advanced Settings-General-preload enabled: True
Select the application pool used by your application in the application pool, and set it in the Advanced tab.
Startup Mode: AlwaysRunning
Process Model-idle Timeout: 1740 (minutes)
Select the application you want to accelerate, and in advanced settings-preload enabled: True.
This is done.
IIS7.5
Windows Server 2008 comes with IIS7.5. In this version, it is difficult to set up and requires the help of Microsoft tools.
Preparation tools:
Application Initialization Module for IIS 7.5
Http://www.iis.net/downloads/microsoft/application-initialization
ApplicationInitializationInstaller_x64.zip
Https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/38/83/23/ApplicationInitializationInstaller_x64.zip
Note: After installation, you may need to restart the server to take effect!
Install on the server.
Select your reference program and find this
Double-click the application pool, select AlwaysRunning, and click Apply.
Select the WebSites tag
OK. Now you can restart the corresponding application to see if it is faster than usual.
Here is an English Tutorial:
Https://blogs.msdn.microsoft.com/amol/2013/01/25/application-initialization-ui-for-iis-7-5/
Reference connection:
Http://www.huaface.com/p/12
Https://blogs.msdn.microsoft.com/amol/2013/01/25/application-initialization-ui-for-iis-7-5/