How to improve the efficiency of IIS server?

  

We usually rely on IIS when setting up the website server, so the efficiency of IIS is very important, but we often find that the expected effect is always better, actually The effect is not as good as expected, so the efficiency of IIS is an important step, how to improve it?

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

1. Enabling the persistence of HTTP can improve execution efficiency by 15-20%.

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

3. Using [independent] handlers will result in a 20% loss 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 programs

6. Increase the number of CPUs in IIS 5.0 computers.

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 as follows

1. Enable HTTP persistence

When HTTP persistence (Keep-Alive) is enabled, IIS and browser connections are not 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 for 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, in the [Contents] [Home Directory] Page, check the [Continuous effect of HTTP] option.

3. Do not enable logging

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

How to set the record not to be enabled? The steps are as follows:

In [Internet Service Administrator], select the entire IIS computer or Web site, in the [Contents] [Home Directory] Page, 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 Processing Program)], the execution efficiency is high. The setting screen is as follows:

How do I set a non-"independent" handler? The steps are as follows: Br>

In [Internet Service Manager], 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)].

Copyright © Windows knowledge All Rights Reserved