Overview This article provides general guidance for how to optimize IIS 4.0 in a large capacity environment. This article is prepared for those WEB server system administrators familiar with Microsoft Windows NT and Microsoft IIS. Because each Web site is unique, Microsoft recommends that customers carefully plan, test and monitor their sites, using the Windows NT server, and the current markets available on the market. This ensures that the content configured on an IIS 4.0 Web site can be optimized based on the purpose. Adjustment Optimization Settings, Universal Adjustment Optimization 1, set the Windows NT server to the AppServer setting steps on the desktop, right-click the network neighbor and select Properties. Double-click the server service on the service label. To ensure that the web application is selected. The scope of the principle of IIS 4.0 increases, and the page error is also increased under the setting of the file server. The AppServer setting indicates that Windows NT is more splitted in the file buffer. 2. Install Hotfix and cancel the unrelated script mapping setting method from the FTP Site Download and run the Hotfix function. You need to choose the appropriate platform (Intel or Alpha). With the Microsoft Management Console, you will go to the Web site (virtual server) in IIS Snap-in. Right-click on the default Web site and / or have any other web site that exists in your content, and select attributes. Select Home Directory Property to click the configuration button in the application setting area. The not used maps are removed, but at least one mapping is left (the server requires at least one map). Microsoft recommends if there is no other mapping in use, retain the .asp extension. The principle of action In order to make the user easier to upgrade to IIS 4.0, IIS 4.0 view each file extension, even in a read-only directory (a directory that cancels the script). This additional load can be eliminated. According to the design, the server requires at least one script map, so the ASP mapping is retained. 3. For large-capacity sites or benchmark tests, the performance strip is set to 100,000 or more setting methods to use the Microsoft Management Console to set the web site (virtual server) in IIS SNAP-I. Right-click on the default Web site and / or have any other web site that exists in your content, and select attributes. Select the performance page and move the slider to the right until 100,000 or more. The principle of action controls the amount of resources available for IIS. Because IIS can bear heavy use, this is common for most benchmarks, so IIS can retain additional resources currently available. Note: This setting is only used for large-capacity sites. This setting should be minimized for small capacity sites. 4. Turn off the performance propulsion setting method for future applications to open the control panel, double-click the system icon, select the performance property page. Move the application performance slider to NONE. The principle of action is important because of the large-capacity site is usually established on a dedicated web server, so providing maximum system resources to the web server is important. This setting maximizes the number of CPU cycles that the web server program can be used. Second, log adjustment Optimization 1, shut down the log setting method with the Microsoft Management Console when it is not needed, and row to the Web site (Virtual Server) in IIS Snap-in. Right-click on the default Web site and / or have any other web site that exists in your content, and select attributes. Cancel the activation of the log from the site property page. The principle of clicking OK is released, and some system resources are released to help improve performance.
2. If the log is activated, write the log to a strip area with a controller that allows the writeback buffer, especially when using a relatively frequent case of frequent log disks, in IIS. Snap-in seizes the WEB site (virtual server). Right-click on the default Web site and / or have any other web site that exists in your content, and select attributes. Select the web site property page, click the Properties button in the log area, make sure the path is booted to a strip area. The principle of role is for busy sites, and the log disk will become a bottleneck because it is a competent focus. All requests on the server will compete for a same file. Third, the network adjustment parameter 1, set the network interface card (NIC) reception cache to the maximum. If this is a controlled environment or for the purpose of the reference test, you must set the setting method on the server and the client on the client to read your NIC documentation. Under the Network Control Panel, this parameter is usually set with the properties of the NIC. The principle of action is lost in the receiving end of the packet causes TCP resend. This minimizes the number of packets of the loss of the receiving end, so performance can be improved. 2. Set the TCP parameter setting method in the registration file with regedT32, sail to HKLM / CurrentControlset / Services / Tcpip parameters. If there is no MAXUSERPORT, add it and set to 0xffe. If there is no TCPWINDOWSIZE value, add it and set to 0x4470. The principle of role we don't want to use the user port. Also, a larger window space is better for high-speed network (TCP will stop when the window is filled). Fourth, SMP Adjustment Parameter 1 If there is N processors in the system, the queuing depth is between N to 3N is the best. If you can't be sure, the default value is retained. For static workload, you can set the maxpoolthreads to 1, set PoolThreadLimit to the number of processors in the system. (These values are set with regedt32.exe in the registration file of Windows NT. Please see the details of these parameters. The principle of action In order to make the introduced requests are not blocked, there is enough line in the system. But every line uses system resources and potentially leads to unnecessary context transitions. The aim is to maximize the number of lines used in IIS without causing additional context transitions. This ensures better performance on a symmetrical multiprocessor (SMP) hardware. V. Optimization of Static Workload 1. Set the object cache time to the Live (TTL) default value for 30 seconds setting method using regedt32, sailing to hkey_local_machine / system / currentcontrolset / service / inetinfo / parameters. If there is no value of ObjectCachettl, it adds it. Set it to the required value. If you can't determine how long the IIS keeps a unused file in the open state, the default value of the ObjectCachettl is retained. The principle of action changes the frequency of the buffer cleavage. If your content is quoted with memory, you can set the cleavage to 0xffffffFFF to cancel it. A higher ObjectCachettl is best for "popular" sites. If the number of files frequently requested is large, ObjectCachettl is useless. Tell IIS to open this purpose to open the unused files. This is helpful if you want these files being repeated in a TTL cycle.
If you don't want these files frequently been repeated, or if the system resources look low, then a low ObjectCachettl is used to save resources. You can also use OpenFileSIncache to limit the number of files that remain open. 2. Set OpenFileIncache to a sufficiently large value to cache all open handles. Default: For each 32MB of physical memory to 1000. Setting method with regedt32, sailing to HKEY_LOCAL_MACHINE / System / CurrentControlset / Services / InetInfo / Parameters. If not, the value of OpenFileIncache is added. Set it to the required value. The determination of this value depends on the number of memory you want to be taken by the IIS buffer and the number of files you wish to cache. The WEB site that the role principle is the highest, and more file handles need to be kept in the open state. If your site content is static, you will maximize the number of files available from the disk from the RAM to greatly improve the performance of the web server. Under Internet Information Service Global, Windows NT Performance Monitor, you can use the cache file handle counter to monitor the number of cached file handles. 6. Optimization of ASP Performance 1. Set ProcessorthReadmax to a low value. Setting methods Using USING RegedT32, sailing to HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / Services / W3SVC / ASP / Parameters. If not, add the value of ProcessorthReadmax. Reduce this value and monitor performance. If the performance is reduced, it returns to the previous value. The principle of action changes the number of lines of each CPU assigned to MTS. This is the less well, the better for a good script. This will reduce the number of battles. 2. Set the AspscripTENGINECACHEMAX property to ProcessorthReadmax and multiply the number of processors in the system. Default: 30 Setting methods are stored in the IIS Configuration Database (Metabase) with information about Web sites, paths, and pages. IIS 4.0 contains some scripts that let you modify the settings in Metabase. From SYSTEMROOT, sailing to / system32 / inetsrv / adminisamples. Type ADSUTIL.VBS. SET / W3SVC / ASPScripTENGINECACAX in ProcessorthReadmax and multiplied by the number of processors in the system. The principle of action This allows each ASP line to cache a scripting engine, resulting in processing the efficiency of the ASP page. 3. Activate the buffer setting method for the ASP application to use the Microsoft Management Console, set to the Web site or ASP application name space in IIS Snap-in. Right click on the site or application and select Properties. Select the Home / Virtual Directory page. Click the configuration button in the application setting section. Click the App Option Properties page. Click the activation buffer option. Click OK, then click OK again. The principle of action is set this option to cache the ASP to the browser's output. This allows the server to release all responses to the client, rather than releases simultaneous release of the server to generate content 4, minimizing the setting method with the Microsoft Management Console, line to the Web site in IIS Snap-in (virtual server). Right-click on the default Web site and / or have any other web site that exists in your content, and select attributes. Select the Home Directory property page. Click the Configuration button in the Application section section. Click the App Option Properties page. Set the SESSION Timeout to you need to maintain the minimum time value of a user session state. The principle of action is used in ASP to maintain session to maintain session requires system resources.