Eight Ways to Improve the Execution Efficiency of IIS 5.0 Web Servers

  

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

1. The persistence of enabling HTTP can improve 15~20%. Execution efficiency.

2. Not enabling logging can improve execution efficiency by 5 to 8%.

3. Using [independent] handlers can lose 20% of execution efficiency.

4. Increase the number of saved files in the cache memory to improve the performance of Active Server Pages.

5. Do not use CGI programs.

6. Increase the number of CPUs in IIS 5.0.

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 persistence.

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. 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 do I set the record not to be enabled? 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 non-independent handlers

Using [independent] handlers will lose 20% of execution efficiency. Here, "independent" means [home directory], [virtual] When the application protection option of the Directory] page 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 temporarily stores static web page data in the cache (Cache) memory; IIS 4.0 temporarily stores static web page data in the file among. Adjusting the number of saved files in the cache memory can improve execution efficiency.

After the ASP instruction file 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 Administrator], select the home directory of the entire IIS computer, "standalone" web site, or "standalone" application. On the [Home] and [Virtual Directory] pages of [Content], when you press the [Setup] button, [Command Memory] can be set from the [Processing Program Options] page.

How to set the number of cache files? The steps are as follows:

In [Internet Service Administrator], select the home directory of the entire IIS computer or 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 CGI programs

When using CGI programs, because the process (Process) must be constantly generated and destroyed, resulting in poor implementation efficiency.

In general, the execution efficiency is as follows:

Static page: 100

ISAPI:50

ASP:10

CGI: 1

In other words, ASP may be 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 IIS 4.0 computer CPU, the implementation efficiency will not improve much; but increase the number of IIS 5.0 computer CPU, the implementation efficiency will be almost In principle, 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 computer.

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], 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%.

The HTTP compression feature 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.

How to enable HTTP compression? The steps are as follows:

To enable HTTP compression, in [Internet Service Administrator], select [Content] of the computer and under [Main Content] select [WWW Service]. 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.


Copyright © Windows knowledge All Rights Reserved