Improve IIS website server efficiency eight methods

  
                  

The following are eight ways to improve the efficiency of the IIS 5.0 web server:

1. Enable the persistence of HTTP to improve execution efficiency by 15-20%.
2. Failure to enable logging can improve execution efficiency by 5 to 8%.
3. Using [independent] handlers will lose 20% of execution efficiency.
4. Increase the number of saved files in the cache memory to improve the performance of ActiveServer Pages.
5. Do not use CGI program
6. Increase the number of IIS 5.0 computer CPU.
7. Do not enable ASP debugging.
8. Static web pages use HTTP compression, which can reduce the amount of transmission by about 20%.

Brief introduction of

1. Enable HTTP persistence

When HTTP persistence (Keep-Alive) is enabled, the connection between IIS and browser will not be broken. Lines can improve execution efficiency until the connection is broken when the browser is closed. Because the "Keep-Alive" state is maintained, there is no need to re-establish a new connection every time the client requests, so the efficiency of the server will be improved.
This feature is a default feature of HTTP 1.1. HTTP 1.0 plus Keep-Alive header can also provide HTTP continuous function.

2, enabling the continuous role of HTTP can improve the performance of 15 to 20%.

How to enable the persistence of HTTP? The steps are as follows:
In [Internet Service Administrator], select the entire IIS computer or Web site, and on the [Home] page of [Content], check the [HTTP Persistence] option.

3. Do not enable logging

Not enabling logging can improve execution efficiency by 5~8%.
How to set not to enable logging? The steps are as follows:
In [Internet Service Administrator], select the entire IIS computer or Web site. On the [Home] page of [Content], uncheck the [Enable Recording] option.
Setting a non-independent processing program
Using [independent] processing program will lose 20% of the execution efficiency. Here, "independent" means the application of the [home directory], [virtual directory] page. When the protection option is set to [High (independent)]. Therefore, when [Application Protection] is set to [Low (IIS Handler)], the execution efficiency is high. The setting screen is as follows:
How do I set a non-"independent" handler? The steps are as follows:
In [Internet Service Administrator], select the entire IIS computer, web site, or application start directory. On the [Home] and [Virtual Directory] pages of [Content], set the application protection option to [Low (IIS Handler)].

4, adjust the cache (Cache) memory

IIS 5.0 will temporarily store static web page data in the cache (Cache) memory; IIS 4.0 will static web page data Stored in the file. Adjusting the number of saved files in the cache memory can improve execution efficiency.
After the ASP command document is executed, it will be temporarily stored in the cache (Cache) memory to improve execution performance. Increasing the number of saved files in the cache memory can improve the performance of Active Server Pages.
You can set the number of cache files for all applications running on IIS computers, "standalone" web sites, or "standalone" applications.

How to set the Cache function? The steps are as follows:
In [Internet Service Manager], select the home directory of the entire IIS computer, "standalone" web site, or "standalone" application. When the [Settings] button is pressed on the [Home] and [Virtual Directory] pages of [Contents], [Command Memory] can be set from the [Processing Program Options] page.
How to set the number of cache (Cache) memory files? The steps are as follows:
In [Internet Service Administrator], select the entire IIS computer, or the starting directory of the Web site. On the [Server Extensions] page of [Content], press the [Setup] button.
You can set the number of cache files.

. 5, do not use the CGI program


when using CGI program, because the processing program (Process) shall continue to produce and destroyed, resulting in poor efficiency.
In general, the execution efficiency is compared as follows:

Static Web Page (Static): 100

ISAPI: 50

ASP:10

CGI :1

In other words, ASP can be up to 10 times faster than CGI, so don't use CGI programs to improve IIS's execution efficiency.

In terms of Flexibility: ASP > CGI > ISAPI > Static Web Page (Static).

In terms of security: ASP (independent) = ISAPI (independent) = CGI > ASP (non-independent) = ISAPI (non-independent) = static web page (Static).

6, increase the number of IIS 5.0 computer CPU

According to Microsoft's test report, increase the number of IIS4.0 computer CPU, the implementation efficiency will not improve much; but increase the number of IIS 5.0 computer CPU, Execution efficiency will be provided almost proportionally. In other words, the IIS 5.0 computer with two CPUs is almost twice as efficient as a CPU computer. The IIS 5.0 computer with four CPUs is almost four times more efficient than a CPU. .
IIS 5.0 temporarily stores static web page data in cache memory; IIS 4.0 temporarily stores static web page data in files. Adjusting the number of saved files in the cache memory can improve execution efficiency.

7. Enable ASP debugging function

Do not enable ASP debugging function to improve execution efficiency.
How to disable ASP debugging? The steps are as follows:
In [Internet Service Administrator], select the Web site, or the application's home directory, right click and select [Content], and press [Home Directory], [Virtual Directory] or [Directory] page. Press the [Set] button, select the [Application Debugging] page, uncheck the [Enable ASP Server Command Debugging], [Enable ASP Client Command Debugging] option.

8. Static web pages use HTTP compression

Static web pages use HTTP compression, which can reduce the amount of transmission by about 20%.
HTTP compression is enabled or disabled and is set for the entire IIS server.
The client uses the IE 5.0 browser to connect to a web server that has HTTP compression enabled for IIS 5.0, and has HTTP compression.
How to enable HTTP compression? The steps are as follows:
To enable HTTP compression, in [Internet Service Administrator], select [Content] of the computer and select [WWW Service] under [Main Content]. Then click the [Edit] button, on the [Services] page, select [Compress Static File] to compress the static file without selecting [Compress Application File].

Dynamically generated content files (compressed application files) can also be compressed, but require additional CPU processing time. If % Processor Time is already 80% or more, it is recommended not to compress.
Next, I would like to talk about it, is to remove some unnecessary services.

Copyright © Windows knowledge All Rights Reserved