Eight Ways to Improve IIS website server Efficiency

Source: Internet
Author: User
Tags website server
The following are eight ways to improve the efficiency of IIS 5.0 website server execution:

1. Enabling the continuous effect of HTTP can be improved by 15 ~ 20% execution efficiency.

2. Record disabled can be improved by 5 ~ 8% execution efficiency.

3. Using a [independent] processing program will result in a 20% reduction in execution efficiency.

4. Increase the number of files stored in the cache to improve the efficiency of Active Server Pages.

5. Do not use CGI programs.

6. Increase the number of CPUs of IIS 5.0 computers.

7. Do not enable ASP debugging.

8. Static web pages adopt HTTP compression, which can reduce the transmission volume by about 20%.

A brief introduction is as follows:

1. Enable the continuous effect of HTTP

When the HTTP continuous function (keep-alive) is enabled, the connection between IIS and the browser will not be broken, which can improve the execution efficiency until the browser is closed. Because the "keep-alive" status does not require a new connection during each client request, the server efficiency will be improved.

This function is a preset function of HTTP 1.1. Http 1.0 with the keep-alive header can also provide the continuous function of HTTP.

2. Enabling the continuous effect of HTTP can be improved by 15 ~ 20% execution efficiency.

How to enable the continuous effect of HTTP? The procedure is as follows:

In [Internet service administrator], select the entire IIS computer or web platform. On the [content] [main directory] Page, select the [http continuous function] Option.

3. Disable record

If the record is not enabled, it can be improved by 5 ~ 8% execution efficiency.

How can I Disable Logging? The procedure is as follows:

In [Internet service administrator], select the entire IIS computer or web platform. On the [main directory] Page of [content], the [enable Record] option is not checked.

Set a non-independent Handler

Using a [independent] processing program will result in a 20% reduction in execution efficiency, here, "independent" refers to setting the application protection option on the [main directory] and [virtual directory] pages to [high (independent. Therefore, when [Application protection] is set to [low (IIS processing program)], the execution efficiency is high. The setting screen is as follows:

How to Set a non-"independent" processing program? The procedure is as follows:

In [Internet service administrator], select the starting directory of the entire IIS computer, web platform, or application. On the [main directory] and [virtual directory] pages of [content], set the application protection option to [low (IIS handler)].

4. Adjust cache memory

IIS 5.0 saves static webpage data to the cache; IIS 4.0 saves static webpage data to the file. Adjusting the number of files stored in the cache improves the execution efficiency.

After the ASP instruction document is executed, it is saved to the cache to improve the execution efficiency. Increasing the number of files stored in the cache improves the efficiency of Active Server Pages.

You can set the number of cache files for all applications running on an entire IIS computer, an "independent" web site, or an "independent" application.

How can I set the cache function? The procedure is as follows:

In [Internet service administrator], select the starting directory of the entire IIS computer, independent web platform, or independent application. On the [main directory] and [virtual directory] pages of [content], when you press the [set] button, you can set [Instruction Cache] on the [handler options] Page.

How can I set the number of cache memory files? The procedure is as follows:

In [Internet service administrator], select the starting directory of the entire IIS computer or web platform. On the [content] [server expansion program] page, click [set.

You can set the number of cache memory files.

5. Do not use CGI

When CGI is used, the execution efficiency is poor because the process must be continuously generated and destroyed.

Generally, the execution efficiency is as follows:

Static webpage: 100
ISAPI: 50
ASP: 10
CGI: 1

In other words, ASP may be 10 times faster than CGI, so do not use CGI programs to improve IIS execution efficiency.

In terms of flexibility, asp> CGI> ISAPI> static web page (static ).

For security, ASP (independent) = ISAPI (independent) = CGI> Asp (non-independent) = ISAPI (non-independent) = static web page (static ).

6. Increase the number of CPU cores for IIS 5.0 computers

According to Microsoft's test report, increasing the number of CPU cores of IIS 4.0 does not improve execution efficiency. However, increasing the number of CPU cores of IIS 5.0 will provide execution efficiency in almost proportional proportion. In other words, the execution efficiency of IIS 5.0 computers with two CPUs is almost twice that of a CPU computer. The execution efficiency of IIS 5.0 computers with four CPUs is almost four times that of a CPU computer.

IIS 5.0 saves static webpage data to the cache; IIS 4.0 saves static webpage data to the file. Adjusting the number of files stored in the cache improves the execution efficiency.

7. Enable ASP Error Detection

Do not enable the ASP error detection function to improve execution efficiency.

Do not enable the ASP error detection function? The procedure is as follows:

In [Internet service administrator], select the starting directory of the web platform or application, right-click and select [content], on the [main directory], [virtual directory], or [Directory] page, click [set] and select the [application error detection] Page, the [enable ASP server command debugging] and [enable ASP Client Command debugging] options are not checked.

8. Http compression for static Web pages

Static web pages adopt HTTP compression, which can reduce the transmission volume by about 20%.

HTTP compression is enabled or disabled for the entire IIS server.

The HTTP compression function is available only when the client uses the IE 5.0 browser to connect to a Web server that has enabled HTTP compression IIS 5.0.

How to enable HTTP compression? The procedure is as follows:

To enable HTTP compression, go to [Internet service administrator], select [content] of the computer, and select [WWW Service] under [main content]. Then, click the [edit] button. On the [SERVICE] Page, select [compress static files] to compress static files without selecting [compress Application Files].

Dynamically generated content files (compressed Application Files) can also be compressed, but it takes additional CPU processing time. If % processor time is already 80% or more, we recommend that you do not compress it.

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.