Microsoft KB Archive/308186

= How to optimize Web server performance in Windows 2000 =

Article ID: 308186

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Small Business Server 2000 Standard Edition

-



This article was previously published under Q308186



IN THIS TASK
SUMMARY
 * Disable Unnecessary Services
 * Maximize Data Throughput for Network Applications
 * Optimize Performance for Background Services
 * Minimize IIS 5.0 Logging
 * Enable Bandwidth Throttling
 * Restrict Processor Usage
 * Limit Web Site Connections
 * Use HTTP Keep-Alives

REFERENCES



SUMMARY
This step-by-step article describes the different methods that you can use to optimize the performance of a dedicated Windows 2000 Web server.

back to the top

Disable Unnecessary Services
Disable Windows 2000 services that are not required for a dedicated Web server. To do this, follow these steps:  Click Start, point to Programs, point to Administrative Tools, and then click Computer Management. Under Computer Management (Local), expand Services and Applications, and then click Services. Started is displayed in the Status column of the services that are running. The following services are not required on a dedicated Web server:

Alerter

ClipBook

Computer Browser

DHCP Client

DHCP Server

Fax Service

File Replication

Infrared Monitor

Internet Connection Sharing

Messenger

NetMeeting Remote Desktop Sharing

Network DDE

Network DDE DSDM

NWLink NetBIOS

NWLink IPX/SPX

Print Spooler

TCP/IP NetBIOS Helper Service

Telephony

Telnet

Uninterruptible Power Supply

 Note the services that are dependent on the service that you want to stop. To do this, follow these steps:  Double-click the service that you want. For example, double-click Messenger. Click the Dependencies tab. In the  depends on these services list (where   is the name of the service that you selected), note the services on which this service depends. In the These services depend on  list, note the services that will be unable to start without this service.</li> Click OK.</li></ol> </li> Disable the service that you want. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Right-click the service that you want to disable, and then click Properties on the shortcut menu that appears.</li> In the Startup type list, click Disabled.</li> If you want to immediately stop the service, click Stop. If you a Stop Other Services dialog box appears, other services that depend on this service will also be stopped. Note the affected services, and then click Yes.</li> Click OK. Disabled is displayed in the Startup Type column of this service.</li></ol> </li> Repeat step 4 to disable other unnecessary services.</li></ol>

NOTE: Test the Web server computer for proper operation after you disable each service. This minimizes the effect of disabling a service that you may want or need.

NOTE: If the IIS server is a member of a Windows 2000 domain the TCP/IP helper service is required to properly apply group policy to the computer.

back to the top

Maximize Data Throughput for Network Applications
Run the Internet Information Services (IIS) 5.0 process pageable code in working memory. To do this, follow these steps:
 * 1) On the desktop, right-click My Network Places, and then click Properties on the shortcut menu that appears.
 * 2) Right-click the Local Area Connection icon that you want, and then click Properties on the shortcut menu that appears.
 * 3) In the Components checked are used by this connection list, click (but do not clear its check box) File and Printer Sharing for Microsoft Networks, and then click Properties.
 * 4) Click Maximum data throughput for network applications, and then click OK twice.
 * 5) Restart the server for these changes to take effect.

back to the top

Optimize Performance for Background Services
The IIS 5.0 process (Inetinfo.exe) runs as a background service. To increase performance for background services, follow these steps:
 * 1) Click Start, point to Settings, and then click Control Panel.
 * 2) In Control Panel, double-click System.
 * 3) Click the Advanced tab, and then click Performance Options.
 * 4) Under Application response, click Background services, and then click OK twice.
 * 5) Quit Control Panel.

back to the top

Minimize IIS 5.0 Logging
Disable logging on Web sites, virtual directories, or files and folders unless you require it. To do this, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.
 * 2) Expand * , where   is the name of the Web server.
 * 3) Navigate to the item that you want, and then right-click it. On the shortcut menu that appears, click Properties. For example, right-click Default Web Site, and then click Properties on the shortcut menu that appears.
 * 4) Do one of the following:
 * 5) * If you selected a Web site, click the Home Directory tab.

-or-
 * 1) * If you selected a Virtual directory, click the Virtual Directory tab.

-or-
 * 1) * If you selected a physical directory, click the Directory tab.
 * 2) Click to clear the Log visits check box, and then click OK.

To disable logging for an entire Web site, click the Web Site tab, click to clear the Enable Logging check box, and then click OK.
 * 1) Quit the Internet Information Services snap-in.

back to the top

Enable Bandwidth Throttling
Limit the amount of network bandwidth that is available to individual Web sites. To do this, follow these steps:
 * 1) Start Internet Services Manager.
 * 2) Expand * , where   is the name of the Web server.
 * 3) Right-click the Web site that you want (for example, Default Web Site) and then click Properties on the shortcut menu that appears.
 * 4) Click the Performance tab, and then click to select the Enable bandwidth throttling check box.
 * 5) In the Maximum network use box, type the value that you want, and then click OK.
 * 6) Quit the Internet Information Services snap-in.

back to the top

Restrict Processor Usage
Limit the amount of processor usage available to individual Web sites. To do this, follow these steps:
 * 1) Start Internet Services Manager.
 * 2) Expand * , where   is the name of the Web server.
 * 3) Right-click the Web site that you want (for example, Default Web Site), and then click Properties on the shortcut menu that appears.
 * 4) Click the Performance tab, and then click to select the Enable process throttling check box.
 * 5) In the Maximum CPU use box, type the value that you want.
 * 6) Click to select the Enforce limits check box, and then click OK.

NOTE: If you do not enable the Enforce limits option, the Maximum CPU use limit is not enforced. When a Web site exceeds its allowed CPU usage limit, an event is written to the Event Log.
 * 1) Quit the Internet Information Services snap-in.

back to the top

Limit Web Site Connections
Limit the number of connections available to individual Web sites. To do this, follow these steps:
 * 1) Start Internet Services Manager.
 * 2) Expand * , where   is the name of the Web server.
 * 3) Right-click the Web site that you want (for example, Default Web Site) and then click Properties on the shortcut menu that appears.
 * 4) Under Connections, click Limited To.
 * 5) In the connections box, type the number of connections that you want to allow.

NOTE: Each connected client uses approximately four concurrent connections. For example, a connection limit of 200 would allow approximately 50 users to access the Web site.
 * 1) Click OK, and then quit the Internet Information Services snap-in.

back to the top

Use HTTP Keep-Alives
The use of HTTP Keep-Alives is enabled by default. To verify that HTTP Keep-Alives are enabled, follow these steps:
 * 1) Start Internet Services Manager.
 * 2) Expand * , where   is the name of the Web server.
 * 3) Right-click the Web site that you want (for example, Default Web Site) and then click Properties on the shortcut menu.
 * 4) Under Connections, verify that the HTTP Keep-Alives Enabled check box is selected, and then click OK.
 * 5) Quit the Internet Information Services snap-in.

back to the top

<div class="references_section">