Eight Ways to Improve IIS website server Efficiency

Source: Internet
Author: User
Tags website server

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. Use [independent] Processing Program 20% of execution efficiency will be lost.
4. Add the number of files saved in the cache to improve the efficiency of activeserver pages.
5. Do not use CGI programs
6. Add the number of CPUs for 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 a new connection is not required for each client request to maintain the "keep-alive" status, the efficiency of the server 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:
On the [Internet service administrator] Page, select the [main directory] of the entire IIS computer or web platform, and select the [http continuity] 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. The number of files saved in the cache can improve 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 programs

When Using CGI programs, the process must be continuously generated and destroyed, resulting in poor execution efficiency.
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. Number of CPU added to IIS 5.0

According to Microsoft's test report, the number of CPUs added to iis4.0 does not improve the execution efficiency. However, when the number of CPUs added to IIS 5.0 is almost proportional to the execution efficiency. 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], right-click the starting directory of the web platform or application and choose [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 connects to the web server that has enabled HTTP compression IIS 5.0 using the IE 5.0 browser.
How to enable HTTP compression? The procedure is as follows:
To enable the HTTP compression function, 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.
Next, I would like to talk about some unnecessary services.

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.