Microsoft KB Archive/320751

= High CPU Usage Occurs When There Are a Very Large Number of Connections on Port 445 =

Article ID: 320751

Article Last Modified on 2/21/2007

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2

-



This article was previously published under Q320751



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When a Windows 2000 Server-based computer (and to a lesser extent, a Windows 2000 Professional-based computer) receives connection requests on port 445, it allocates memory and a small degree of increased CPU usage to serve these connections. When the connection is closed, the server releases these resources after a short time.



CAUSE
There is an inherent trade-off between the number of work items and responsiveness. It is important for administrators to determine the appropriate MaxWorkItems setting to improve system responsiveness. If you use an incorrect value, the server's responsiveness may be affected or one user may be able to monopolize system resources.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

WORKAROUND
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To work around this problem, create and then set the MaxWorkItems value in the registry to a value that the computer can support:  Start Registry Editor. Locate and then click the parameters value under the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver

 On the Edit menu, click Add Value. Type maxworkitems in the Value Name box, click REG_DWORD in the Data Type box, and then click OK. In the Data box, type one of the following values:  Type 1024 for computers that have a large amount of memory (greater than 2 gigabytes [GB]).</li> Type 512 for computers that have a medium amount of memory (from 512 megabytes [MB] to 2 GB).</li> Type 256 for computers that have a small amount of memory (less than 512 MB).</li></ul> </li> Click OK, and then quit Registry Editor.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.

<div class="moreinformation_section">

MORE INFORMATION
Computers that have a single CPU are more susceptible to this problem in which the CPU usage remains at 100 percent for a short time when it receives a very large number of connection requests. After the large number of connection requests stops, CPU usage remains at 100 percent for a few minutes, after which time it returns to standard levels. When the same situation occurs on a computer that has multiple CPUs, CPU usage returns to standard levels after about 30 seconds.

Acknowledgment: Peter Grundl of KPMG (http://www.kpmg.com/) contributed to this Microsoft Knowledge Base article.

Keywords: kbfix kbwin2000sp3fix kbenv kbnetwork kbui kbprb KB320751

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.