The following describes how to improve IIS execution efficiency:
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%.
The following is a brief introduction.
Enable 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 is maintained, a new connection is not required for each client request, so the efficiency of the server is 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.
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.
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)].
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 command file is executed, it is saved to the cache to improve the execution efficiency. Increase the number of files stored in the cache to 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.
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:
2. Static webpage: 100
2. ISAPI: 50
2. asp: 10
2. 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 ).
Increase the number of CPU cores of 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.
Do not enable ASP Error Detection Function
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.
Static web pages are compressed using HTTP
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 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.
From: http://www.7i24.com