To work around this problem, increase the number of connections that you can have by resetting the registry values of the
MaxCmds
and the
MaxMpxCt
subkeys. The recommended values are 253, 1124, and 2048. To do this, follow these steps.
Note In this section, the
LanmanWorkstation is the Web server and the
LanmanServer is the remote share.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
- Verify that the setting for the
MaxCmds
registry value on the Web server is 50 or greater. To do this, follow these steps:
Note The MaxCmds
entry is a REG_DWORD decimal entry. If it does not exist, you can create it as a new REG_DWORD value. The range of values for this registry entry is between 0 and 65535. If the MaxCmds
and subkey does not exist, create the subkey.- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following subsubkey in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\parameters
- In the right pane, double-click the MaxCmds value.
- In the Value box, verify that the number is 50 or greater. If the number is not greater than 50, increase the value to one of the recommended values.
- Exit Registry Editor.
Note In a Microsoft Windows Terminal Services environment, you may have to set the MaxCmds
registry value to 500 or greater.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
232476
Terminal Server client connections and logon limited by MaxWorkItem and MaxMpxCt values
- Verify that the setting for the
MaxMpxCt
registry value on the Microsoft Windows 2000-based server is 50 or greater. If the MaxMpxCt
subkey does not exist, create the subkey. To do this, follow these steps:- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following subkey in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\parameters
- In the right pane, double-click the MaxMpxCt value.
- In the Value box, verify that the number is 50 or greater. If the number is not larger than 50, increase the value to one of the recommended values.
Note The MaxMpxCt
value determines the maximum number of active requests that the server allows for at the same time from an individual client. - Exit Registry Editor.
- Repeat steps 1 and 2 on the remote share.
Note If you increase these values on the x86 platform, the file server and the IIS clients will consume additional non-paged pool memory. Non-paged pool memory has an upper limit of 256 megabytes (MB). Lots of clients together with lots of connections can consume all the non-paged pool memory on the file server. Use Performance Monitor to watch this counter and to make sure that it is not approaching the limit. On the x64 platform, non-paged pool memory has an upper limit of 128 gigabytes (GB). Therefore, you can increase these values to the maximum value.
For more information about the differences between non-paged pool memory on the x86 platform and on the x64 platform, click the following article number to view the article in the Microsoft Knowledge Base:
294418
Comparison of 32-bit and 64-bit memory architecture for 64-bit editions of Windows XP and Windows Server 2003