Eight ways to improve the efficiency of IIS 5.0 Web server execution

Source: Internet
Author: User
Tags continue execution iis client
iis| Server | execution

Here are eight ways to improve the efficiency of IIS 5.0 Web server execution:

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

2. Not enabling logging can improve the efficiency of 5~8% execution.

3. The use of a [stand-alone] handler can cost 20% of its execution efficiency.

4. Increasing the number of saved documents for cache memory can improve the effectiveness of active Server pages.

5. Do not use CGI programs.

6. Increase the number of IIS 5.0 computer CPUs.

7. Do not enable the ASP debugging function.

8. Static Web pages are compressed by HTTP, which can reduce the transmission volume by 20%.

Briefly described below

1. Enable HTTP to continue to function

When HTTP persistence is enabled (keep-alive), the connection between IIS and the browser is not disconnected and can improve execution efficiency until the connection is disconnected when the browser is closed. Because the "keep-alive" state is maintained, a new connection is not required on each client request, so the efficiency of the server is improved.

This feature is an HTTP 1.1 preset feature, and HTTP 1.0 plus the Keep-alive header can also provide an ongoing function of HTTP.

2. Enabling HTTP's continued role can improve the efficiency of 15~20% execution.

How do I enable HTTP to continue? The steps are as follows:

In Internet Services Administrator, select the entire IIS computer, or Web site, on the home directory page of content, and check the HTTP persistence option.

3. Do not enable logging

Not enabling logging can improve the efficiency of 5~8% execution.

How do I set a record that is not enabled? The steps are as follows:

In Internet Services Administrator, select the entire IIS computer, or Web site, on the home directory page of content, and uncheck the Enable logging option.

Set up a non-independent handler

Using a [standalone] handler loses 20% of the execution efficiency, where the term "standalone" means that the Application Protection option for the home directory, virtual directory page is set to [High (independent)]. Therefore, when application protection is set to low (IIS handlers), the execution is more efficient and the setting screen is as follows:

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

In Internet Services Administrator, select the entire IIS computer, Web site, or the start directory for the application. For the [content] [home directory], [virtual directory] page, set the Application Protection option to [Low (IIS handler)].

4, adjust cache memory

IIS 5.0 temporarily registers static Web page data in cache memory, and IIS 4.0 temporarily saves static Web data in the file. Adjusting cache memory number of saved files can improve execution efficiency.

After the ASP instruction document is executed, it will be stored in cache memory to improve performance. Increasing the number of saved documents for cache memory can improve the effectiveness of active Server pages.

You can set the number of cache memory files for all applications that are executed on the entire IIS computer, the standalone "web platform, or the standalone application program.

How do I set the cache function? The steps are as follows:

In Internet Services Administrator, select the entire IIS computer, the starting directory for the standalone "web platform, or standalone application. In the [content] of the home directory, the virtual directory page, when the [Set] button is pressed, you can set the [command file cache memory] from the [Handler options] page.

How do I set the number of cache memory files? The steps are as follows:

In Internet Services Administrator, select the entire IIS computer, or the start directory for the Web site. On the [Server Extensions] page of [content], press the [Set] button.

You can set the number of cache memory files.

5. Do not use CGI program

When using a CGI program, execution is inefficient because the handler (process) has to be constantly generated and destroyed.

In general, the efficiency of implementation is compared as follows:

Static Web page (static): 100

Isapi:50

Asp:10

Cgi:1

In other words, ASPs can be 10 times times faster than CGI, so don't use CGI programs to improve the efficiency of IIS execution.

In terms of elasticity (flexibility): ASP > CGI > ISAPI > Static Web page (static).

For security purposes: ASP (standalone) = ISAPI (standalone) = CGI > ASP (non-standalone) = ISAPI (not standalone) = 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, execution efficiency does not improve how much, but increase the number of IIS 5.0 computer CPU, execution efficiency will be almost proportional to provide, in other words, two CPUs of IIS 5.0 computer execution efficiency is almost twice times the CPU computer, The four-CPU IIS 5.0 computer performs nearly four times times the efficiency of a CPU computer.

IIS 5.0 temporarily registers static Web page data in cache memory, and IIS 4.0 temporarily saves static Web data in the file. Adjusting cache memory number of saved files can improve execution efficiency.

7, Enable ASP debugging features

Do not enable ASP debugging features to improve execution efficiency.

How do you not enable ASP debugging? Steps are as follows:

In Internet Services Administrator, select the Web site, or the starting directory for the application, right-click to select content, press [home directory], [virtual directory] or [directory] page, press [Set] button, select [Application Debug] page, uncheck [Enable ASP server-side instruction debugging], enable ASP client command debugging option.

8, static Web page using HTTP compression

Static Web pages are compressed with HTTP, which can reduce traffic by 20%.

The HTTP compression feature is enabled or closed and is set for the entire IIS server.

The HTTP compression feature is available to the client using the IE 5.0 browser to connect to the Web server that has HTTP compression IIS 5.0 enabled.

How do I enable HTTP compression? The steps are as follows:

To enable HTTP compression, select [content] for your computer in [Internet Service Admins], and select [WWW service] under [main content]. Then click the [Edit] button, and on the Services page, choose [Compress static files] to compress the static files and not select [Compress application files].

Dynamically generated content files (compressed application files) can also be compressed, but require additional CPU processing time, if% Processor times already 80% or more, it is recommended not to compress.

Second, I'd like to say something about removing unnecessary services.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.