ASP. NET startup optimization settings in IIS, asp. netiis

Source: Internet
Author: User

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/

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.