The following are eight ways to improve the efficiency of the IIS 5.0 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. 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.
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 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.
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 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.
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.
For 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 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.
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, so we recommend that you do not compress it.