Home > Virtual Desktop Tips > Application virtualization and streaming tips > How to troubleshoot Terminal Services connection problems
Virtual Desktop Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

APPLICATION VIRTUALIZATION AND STREAMING TIPS

How to troubleshoot Terminal Services connection problems


Gary Olsen, Contributor
02.26.2008
Rating: -4.62- (out of 5)


Expert advice on Active Directory and Group Policy
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Recently, I was asked to resolve a problem where a large terminal server farm was having some unusual issues. The symptom was that as users connected to various terminal servers they would hit a connection limit. The problem hit all of the servers in a random fashion, but it seemed that they would allow only 45 connections. The 46th connection was refused, and because the terminal servers had been in use for some time, it was difficult to explain why this behavior started.

In diagnosing the problem, there were a number of things to consider. Of course, it could be a resource limit on the servers – memory, I/O, perhaps even a network resource because they were all at a single site. I determined that:

Microsoft KB 923630 provides new components for Gdi32.dll and Win32k.sys that resolves problems where a Terminal Server refuses connections, but this hotfix was quite old. Because these systems were at SP2, the components were newer than the hotfix.

However, KB 908912 states that the maximum connections to a terminal server is controlled by a registry key. The registry value is located at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer, and is a Dword Value, MaxOutstandingConnect. Note that this value must be created. The KB, however, is not clear on what the value should be set to. It states:

Note: The registry value should be set to the appropriate threshold to achieve the required connection detection. For example, if 50 connections are required, set the value to 32 in hexadecimal format.

We needed many more connections than 50, and the 64-bit servers have the horsepower to do it. Because our limit of 45 connection


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Application virtualization and streaming tips
Understanding application virtualization as a software hosting strategy
ThinApp deployments in a training environment
Use application virtualization before moving to VDI
Software license management: A benefit of application virtualization
Remote Programs can simplify application management
Application streaming: What you need to know
Tame productivity losses with application virtualization
Combine application virtualization with streaming
Presentation virtualization: Centralized app management in Windows Server 2008
Can admins rely on built-in Vista features for application support?

Terminal Services and Remote Desktop Services
Techniques for overcoming challenging VDI, WAN connections
Presentation virtualization: The low-complexity alternative to VDI
Terminal Services get a makeover in Windows Server 2008 R2
How to install Microsoft VDI and key deployment considerations
Third-party virtual desktop technologies for Microsoft
Verify device support in your hypervisor
Citrix, Microsoft address common and competing virtual desktop goals
Test your virtual desktop technology knowledge
Improved Terminal Services resource management in Windows Server 2008
Terminal Services tutorial: Remote data management

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


s seemed in the ballpark of the 50 in the example, it seemed reasonable to pursue this. We found that the default seemed to be 50. We raised the threshold to 100, and the connections stopped at 95. Set it to 75, and we could only get 70 connections.

Apparently Microsoft designed this feature to help regulate Terminal Services connections and prevent them from overtaxing server resources. Too bad the company didn't do a better job explaining it. I have no idea why we could get only five fewer connections than the value we set, but it was reproducible.

Because the connections do take up resources, we monitored the terminal servers as we modified this value. But our servers easily handled the load and we ended up with a maximum connection setting that the server could handle and it provided the number of connections that we wanted. This had to be set on each terminal server, but it did solve our problem.

The point here is not to say that this registry key is one-stop shopping for solving terminal server connection limit problems, but it can be a factor. When troubleshooting this issue, look at the bullet points in this article for other solutions.

It is important to identify the scope of the problem -- all servers or just a few -- if the limit seems to be consistent and if resources are depleted. Just setting this value without good troubleshooting of the problem will not necessarily solve it.

Gary Olsen is a systems software engineer for Hewlett-Packard in Global Solutions Engineering. He authored Windows 2000: Active Directory Design and Deployment and co-authored Windows Server 2003 on HP ProLiant Servers. Gary is a Microsoft MVP for Windows Server-File Systems.

Rate this Tip
To rate tips, you must be a member of SearchVirtualDesktop.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2008 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts