8 ways to improve the efficiency of IIS Web server _win server
Source: Internet
Author: User
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. Add speed to save the memory of the number of documents, can improve the effectiveness of activeserver pages.
5. Do not use CGI program
6. Add 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, it is not necessary to re-establish a new connection 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 you enable HTTP to continue? The steps are as follows:
In [Internet service Administrator], select the entire IIS computer, or the Web site, and on the home directory page of content, 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 without enabling it? The steps are as follows:
In Internet service 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 service 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. Adds the ability to speed up memory-saving documents to 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 to set cache function? The steps are as follows:
In [Internet service Administrator], select the home directory for the entire IIS computer, the standalone "web platform, or the 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 service 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, add IIS 5.0 computer CPU number
According to Microsoft's test report, add IIS4.0 computer CPU number, implementation efficiency does not improve how much, but add IIS 5.0 computer CPU number, execution efficiency will be almost proportional to provide, in other words, two CPUs IIS 5.0 computer execution efficiency is almost a CPU computer twice times, 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 features? The steps are as follows:
In [Internet service 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 the HTTP compression feature? The steps are as follows:
To enable HTTP compression, select [content] for your computer in [Internet service Administrator], and select [WWW service] under [main content]. Then click the [Edit] button on the service page and choose [Compress static file] to compress the static file and not select [Compress application file].
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 would like to say, is to remove some of the service.
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.