Eight ways to improve the efficiency of IIS website servers (reproduced)

xiaoxiao2021-03-06  178

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

1. Enable HTTP's persistence can improve 15 to 20% of execution efficiency.

2. Do not enable records to improve 5 to 8% of the execution efficiency.

3. Use [independent] handler to lose 20% of execution efficiency.

4. Increase the number of saved documents of the memory, improve the effectiveness of Active Server Pages.

5. Do not use the CGI program.

6. Add the number of IIS 5.0 CPUs.

7. Do not enable ASP detection.

8. The static web page uses HTTP compression, which can reduce the amount of transmission of 20%.

Simple introduction

1. Enable the persistence of HTTP

When HTTP's continuous effect is enabled, the connection between IIS and the browser does not disconnect, and the execution efficiency can be improved until the browser is closed. Because of the "Keep-Alive" status, it is necessary to re-establish a new connection every time the client request, so the efficiency of the server will be improved.

This feature is a preset function of HTTP 1.0, and HTTP 1.0 plus Keep-Alive Header can also provide the HTTP's persistent function.

2. Enable HTTP's persistence can improve 15 to 20% of execution efficiency.

How to enable HTTP's persistent effect? Proceed as follows:

In the [Internet Service Administrator], select the entire IIS computer, or the web station, in [Main Directory] page of [Content], check [HTTP's continuous action] option.

3, do not enable record

Do not enable records can improve 5 to 8% of execution efficiency.

How to set up not enable record? Proceed as follows:

In the [Internet Service Administrator], select the entire IIS computer, or the web station, on the [Profile] page, do not check the [Enable Record] option.

Set non-stand-alone handler

Use [Independence] to lose 20% of execution efficiency, the so-called "independent" system refers to the [Main Directory], [Virtual Directory] page Application Protection Option to [High (independent)] . Therefore [Application Protection] is set to [low (IIS handler)], the execution efficiency is high, the setting screen is as follows:

How to set a non-"independent" handler? Proceed as follows:

In the [Internet Service Administrator], select the starting directory of the entire IIS computer, web station, or application. In [Content] [Main Directory], [Virtual Directory] page, set the Application Protection Option to [Low (IIS Processor)].

4, adjust the cache memory

IIS 5.0 temporarily stores the static web information in the cache memory; IIS 4.0 temporarily stores the static web information in the file. Adjusting Cache memory saves files can improve execution efficiency.

After the ASP instruction document is executed, it will be presented in a cache memory to improve the performance performance. Increase the number of saved documents of the quick memory, improve the effectiveness of Active Server Pages.

You can set all the number of quick-optic memory files performed throughout the IIS computer, "Independence" Web Station, or "Independ" application.

How to set up a cache function? Proceed as follows:

In the [Internet Service Administrator], choose the entire IIS computer, "Independence" Web Station, or the "Independence" application start directory. When [Contents] [Main Catalog], [Virtual Directory] page, press [Set] button, you can set [Instruction Board Commission Memory].

How to set the number of cache memory files? Proceed as follows:

In the [Internet Service Administrator], select the entire IIS computer, or the start directory of the web station. Press the [Setting] button in [Server Expansion "page in [Content]. You can set the number of cache memory files.

5, do not use CGI

When using CGI, because the processor must constantly destroy and destructive, it is not good to cause the execution efficiency.

In general, the performance efficiency is as follows:

Static web page (STIC): 100

ISAPI: 50

ASP: 10

CGI: 1

In other words, ASP may be 10 times faster than CGI, so do not use CGI program 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 (STIC).

6, increase the number of IIS 5.0 computer CPU

According to Microsoft's test report, increase the number of IIS 4.0 computers CPUs, how much execution is improved; however, increases the number of IIS 5.0 computer CPUs, and execution efficiency will provide almost proportionally, in other words, two CPU IIS 5.0 computer execution The efficiency is almost twice as a CPU computer, and the four CPU IIS 5.0 computers are almost four times that of a CPU computer.

IIS 5.0 temporarily stores the static web information in the cache memory; IIS 4.0 temporarily stores the static web information in the file. Adjusting Cache memory saves files can improve execution efficiency.

7, enable ASP detection

Do not enable an ASP detection function to improve execution efficiency.

How do you do not enable ASP detection? Proceed as follows:

In [Internet Service Administrator], select the web platform, or the start directory of the application, press the right click, press [Main Directory], [Virtual Directory] or [Directory] page, press [Set] Button, select the [Application Defractory] page, do not check [Enable ASP Server Device Instruction Data], [Enable ASP User Directive Default] option.

8, static web page uses HTTP compression

The static web page is compressed by HTTP, which can reduce the amount of transmission of 20%.

HTTP compression is enabled or off, which is set for the entire IIS server.

The user ends uses IE 5.0 browser to connect to the HTTP compression IIS 5.0 web server that has enabled HTTP compressed IIS 5.0.

How do I enable HTTP compression? Proceed as follows:

To enable HTTP compression, the method is in [Internet Service Administrator], select [Content] below [Content], and select [WWW service] below [Main content]. Then press the [Edit] button, on the [Service] page, select [Compressed Static Archive] to compress static files, do not select [Compressed Application Profile].

Dynamically generated content files (compressed application files) can also be compressed, but it is recommended to consume additional CPU processing time. If the% Processor Time is 80%, it is recommended not to compress.

转载请注明原文地址:https://www.9cbs.com/read-128320.html

New Post(0)