The Windows Server 2008 Terminal Services Session Broker service incorrectly balances the load among terminal servers after it runs for a while

Article translations Article translations
Article ID: 955365 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Assume that you configure Windows Server 2008 Terminal Services Session Broker (TS Session Broker) by using DNS round robin. However, after some time, new sessions are redirected to only one server or to only a specific set of servers. This behavior occurs even though the load of other terminal servers on the network is low.

Additionally, after this problem occurs, events that resemble the following are logged in the session broker log (Tssdis.log):

4016: time GetMostSuitableServer: server name has too many (22) pending redirections. Devalvated for LB
4016: time GetMostSuitableServer: server name has too many (25) pending redirections. Devalvated for LB
4016: time GetMostSuitableServer: server name has too many (25) pending redirections. Devalvated for LB
3936: time GetMostSuitableServer: server name has too many (47) pending redirections. Devalvated for LB

Note The Tssdis.log file is located in the %windir%\system32\tssesdir directory.

CAUSE

A pending redirection occurs when a new user logs on to the farm of terminal servers, and TS Session Broker points the user to a particular terminal server before the logon process has finished. The session directory tracks the number of pending redirections for each terminal server, and then it increases the count when the TS Session Broker determines the target server. Additionally, the session directory decreases the count after the logon process is complete.

However, the TS Session Broker service incorrectly increases the count of pending redirections for disconnected terminal sessions, and it never decreases the count. Therefore, when the pending redirection count on a terminal server reaches its limit (16, by default), the TS Session Broker service no longer redirects new terminal sessions to this terminal server. Eventually, the number of available servers decreases to a small set or to only a single server.

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Important Windows Vista and Windows Server 2008 hotfixes are included in the same packages. However, only one of these products may be listed on the “Hotfix Request” page. To request the hotfix package that applies to both Windows Vista and Windows Server 2008, just select the product that is listed on the page.

Prerequisites

To apply this hotfix, you must have Windows Server 2008 TS Session Broker installed.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows Server 2008 file information notes
The MANIFEST files (.manifest) and MUM files (.mum) that are installed for each environment are listed separately. MUM and MANIFEST files, and the associated security catalog (.cat) files, are critical to maintaining the state of the updated component. The security catalog files (attributes not listed) are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Terminalserversessiondirectoryrole.cmdNot Applicable24318-Dec-200721:03Not Applicable
Tssdis.exe6.0.6001.22246128,00019-Aug-200803:30x86
Tssessiondirectory.events.xmlNot Applicable39318-Dec-200721:03Not Applicable
For all supported x64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Terminalserversessiondirectoryrole.cmdNot Applicable24318-Dec-200721:03Not Applicable
Tssdis.exe6.0.6001.22246157,18419-Aug-200804:46x64
Tssessiondirectory.events.xmlNot Applicable39318-Dec-200721:03Not Applicable

WORKAROUND

To work around this problem, use one of the following methods.

Method 1

Restart TS Session Broker. This may temporarily resolve the problem. However, this problem recurs after several days.

Method 2
  1. Click Start, click Run, type regedit in the Open box, and then press ENTER.
  2. In Registry Editor, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tssdis\Parameters
  3. In the details pane, double-click LB_MaxNumberOfPendingRedirections.

    Note If the LB_MaxNumberOfPendingRedirections DWORD entry does not exist, you must create it. To do this, follow these steps:
    1. In Registry Editor, locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tssdis\Parameters
    2. On the Edit menu, point to New, and then click DWORD Value.
    3. Type LB_MaxNumberOfPendingRedirections, and then press ENTER.
  4. In the Value data box, type a number that is much larger than 16 (but less than 65535), and then click OK.
  5. Exit Registry Editor
Important This method may have the following serious consequences:
  • It may overload a terminal server with logon requests.
  • It may disrupt or disable the network's load-balancing.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about TS Session Broker, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/cc731045.aspx
To enable TS Session Broker logging, follow these steps:
  1. Stop the TS Session Broker service.
  2. In Registry Editor, locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tssdis\Parameters
  3. Create the TraceOutputMode DWORD registry entry, and then set its value to 3.
  4. Start the TS Session Broker service.

Additional file information for Windows Server 2008

Additional files for all supported x86-based versions of Windows Server 2008

Collapse this tableExpand this table
File namePackage_1_for_kb955365~31bf3856ad364e35~x86~~6.0.1.0.mum
File versionNot Applicable
File size1,820
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File namePackage_for_kb955365_server_0~31bf3856ad364e35~x86~~6.0.1.0.mum
File versionNot Applicable
File size1,432
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File namePackage_for_kb955365_server~31bf3856ad364e35~x86~~6.0.1.0.mum
File versionNot Applicable
File size1,430
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File nameX86_07684ecbb7d7638c937ffee6b2b248ba_31bf3856ad364e35_6.0.6001.22246_none_6e8705284fb7f98b.manifest
File versionNot Applicable
File size728
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File nameX86_microsoft-windows-t..iondirectory-server_31bf3856ad364e35_6.0.6001.22246_none_f3e0ce92ec5ca9a3.manifest
File versionNot Applicable
File size31,695
Date (UTC)19-Aug-2008
Time (UTC)04:06
PlatformNot Applicable

Additional files for all supported x64-based versions of Windows Server 2008

Collapse this tableExpand this table
File nameAmd64_f22e3df22c71dd9c356ec74170560805_31bf3856ad364e35_6.0.6001.22246_none_effc862e5acbbdf8.manifest
File versionNot Applicable
File size732
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File nameAmd64_microsoft-windows-t..iondirectory-server_31bf3856ad364e35_6.0.6001.22246_none_4fff6a16a4ba1ad9.manifest
File versionNot Applicable
File size31,731
Date (UTC)19-Aug-2008
Time (UTC)05:30
PlatformNot Applicable
File namePackage_1_for_kb955365~31bf3856ad364e35~amd64~~6.0.1.0.mum
File versionNot Applicable
File size1,830
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File namePackage_for_kb955365_server_0~31bf3856ad364e35~amd64~~6.0.1.0.mum
File versionNot Applicable
File size1,440
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable
File namePackage_for_kb955365_server~31bf3856ad364e35~amd64~~6.0.1.0.mum
File versionNot Applicable
File size1,438
Date (UTC)19-Aug-2008
Time (UTC)22:55
PlatformNot Applicable

Properties

Article ID: 955365 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 Standard without Hyper-V
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
Keywords: 
kbautohotfix kbexpertiseinter kbbug kbfix kbqfe KB955365

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com