Break the limit and let the IIS server run on demand

  
                  [Introduction] The website has become a fashion stage for self-expression and self-promotion. If you have joined the fashion family, you will definitely want to build a website that can show your personal style. In fact, it is not difficult to create a website, as long as we use it ourselves. In the computer, install a server system like Windows 2000, 2003, and then use the IIS console program that comes with these server systems to quickly set up a site of your own!

How can I make my site efficiently serve externally after I have a site? In fact, to do this, you must master some techniques for optimizing and tuning the IIS console. After all, by default, the IIS console has a lot of restrictions on the efficient operation of the website! This is not the case, this article below to break through the default restrictions of IIS as a starting point, to provide you with several management skills that can make the website run efficiently!

1, breakthrough capacity constraints, to achieve a large file upload

Windows 2003 Server IIS by default, only allows users to upload pages maximum capacity of 200KB file, if the uploaded If the file size exceeds this limit, the web page will automatically pop up a prompt similar to "Request object error". So, is there any way to break the file size limit of the IIS server in order to upload a larger file to the website? In fact, through the following steps, we can customize the capacity standard of the website upload file as much as we want, making the large file upload easy:

First click the "Start" /"Run" command, in its After the pop-up run box, enter the string command "Services.msc", click the "OK" button, enter the system's service list interface; find the "World Wide Web Publishing Service" service option from the interface, and use the mouse Double-click it to open the property settings window of the service, and then click the Stop button in the window to temporarily disable the "World Wide Web Publishing Service" system service.

Second, open Explorer window system, turn into the "system32", "inesrv" sub-folder window, and find the "metabase.xml" file in the corresponding window interface, then right mouse button Click on the file and execute the "Edit" command from the pop-up context menu, so the system will automatically call the file editing tool such as Notepad to open the file.

below and from the open text editing interface, find the string "AspMaxRequestEntityAllowed" (Figure 1); we find that the default value of the string corresponding to "204800", the value is actually ASP website The default value of "204800" is used to customize the capacity standard of the maximum allowed upload file. The default value of the website is 200K. Now we can modify this value at will to meet the requirements of uploading files. For example, if we want to upload a file of 10M size, we only need to change "204800" to "10485760", and then save the file again. Yes.


560)this.style.width=560;"border=1>Figure 1

In order for the above settings to take effect, we also need to enter the system's service list window, Restart the "World Wide Web Publishing Service" service; then go to the system's IIS console window and restart the ASP website so that the target website can allow us to officially upload large files.

2, breaking the memory limit, high-speed operation

by default, Windows 2003 server IIS does not automatically reclaim system memory resources used by the application process, such as the run time of the site Growth, the limited memory resources in the web server will be used less and less, until the memory resources are completely consumed, and the entire website system will be in a state of paralysis. In order to effectively avoid the embarrassing phenomenon of the website system, we can skillfully use the application. The program pool allows IIS to periodically reclaim unwanted work processes in order to change the default limit of IIS6.0 memory resources to ensure that the website system can run stably and at high speed. The specific implementation steps of changing the memory default limit and setting the recycling process are as follows:

First click the “Settings” and “Control Panel” options one by one from the “Start” menu, and then double-click on the interface in the rear. "Administrative tools" project, and then double-click Administrative tools list interface of the "Internet information services Manager" option, enter the IIS console interface system.

unfold one by one in the left area of ​​the IIS console interface "Local Computer" /"Application Pool" /"DefaultAppPool" option, then right-click the "DefaultAppPool" option, and then execute the "Properties" command from the pop-up context menu to open the property settings window for the option. BR>
Click the "Recycle" tab in the settings window to open the option settings page shown in Figure 2; select the "Recycle Work Process (minutes)" option and select the corresponding option. Enter a specific value in the text box to inform IIS how long to automatically reclaim the inactive application process. Please reprint the application network www.45it.com, please specify

Next, select the "Recycling Work Process (Number of Requests)" item in the page of Figure 2, and enter a specific text in the text box corresponding to the option. The value, to specify how many requests the IIS system receives, can start to recycle the application process. Considering that IIS also takes up a lot of system resources when recycling the application process, so in order to stagger the time of the website visit, we You also need to select the "Recycle Work Processes at the following time" item and click the "Add" button to specify when a website is idle to start recycling the application process. Normally we can set the time to late night. Around 2 o'clock.

560)this.style.width=560;"border=1>Figure 2

Next in the IIS console interface, right click on the target site name, from In the right context menu, select the "Properties" option, then click the "Home Directory" tab in the target website properties interface, and check whether the application pool in the corresponding option settings page is set to "DefaultAppPool", if not we You can re-adjust it. After completing all the above settings, restart the system's IIS service, so that our ASP website can run at high speed.

3, break through resource constraints, achieve Efficient operation

If our ASP website is placed in a server with poor performance configuration and Windows 2000 operating system, IIS will be very inefficient in handling website access requests by default. So that visitors can't access the ASP website very quickly; in order to allow visitors to visit the target website more smoothly, we can break through the system resource limit as follows, let IIS as much as possible To process the website access request:

Click the "Start" /"Programs" /"Administrative Tools" /"Internet Service Manager" option to open the "Internet Information Services" management interface, expand with the left mouse button The host name of the left area of ​​the interface, and in the list of sites corresponding to the host, select the target ASP website that you need to manage, then right-click the website and execute the "Properties" command in the right-click menu. In the property setting interface that appears afterwards, click the “Home Directory” tab.

Below in the option settings page corresponding to “Home Directory”, click the drop-down at the “Application Protection” setting item. Button (as shown in Figure 3), then select the "Low (IIS Process)" item from the corresponding drop-down list box, and click the "OK" button, so that the efficiency of the IIS server to process access requests will be improved in the future. 20% or so.

560)this.style.width=560;"border=1>Figure 3

In order to make the ASP website consume less space resources, we can also click ASP website property setting boundary In the "Web Sites" tab, and uncheck the "Enable Logging" item in the corresponding option settings page, so that the IIS server does not need to free up space resources to save each access connection record, so It also ensures that the IIS server handles various types of website access request information in a more efficient state. In addition, selecting the "Enable HTTP Activation" item in the "Web Site" option settings page can also improve the efficiency of the ASP website processing access request information to a certain extent. Of course, in order to make the ASP website more efficient, it is best to set up the website in a high-performance dedicated server system, or add multiple CPUs to your own server, so that the running effect will be more obvious!

Copyright © Windows knowledge All Rights Reserved