Terminal Server has exceeded Max number of allowed connections ")

Source: Internet
Author: User

How to Avoid "Terminal Server exceeds the maximum allowed connections"

When you log on to the terminal server through a Remote Desktop Connection, you will often encounter errors such as "the maximum number of connections allowed by the terminal server", which leads to failure to log on to the terminal server, the cause of this problem is that the default connections of terminal services are two links. If you log on to the Remote Desktop and exit without logout, the remote desktop window is closed directly, in fact, the session is not released, but is retained on the server. This will occupy the total number of connections. When the maximum number is reached, the above prompt will appear.
Solution:
1. log out of the Remote Desktop instead of closing the window directly.
2. Restrict the time For Disconnected Sessions
3. Increase the maximum number of connections, that is, set the maximum number of connections.
The third method can be modified in the following ways:
1. Modify from Terminal Service Configuration:
Open the terminal service configuration in the management tool, click Connect, and double-click RDP-TCP on the right side. The RDP-TCP attribute is displayed. Select the NIC to set the maximum number of connections, or set it to an unlimited number of connections. Of course, this value cannot be too large, otherwise it will occupy a large amount of system resources. However, the modified value does not seem to work here. When it is set to no limit, the situation described in this article will still appear.
Modify the session existence time: Run-TSCC. MSC-connection-double-click RDP-TCP or right-click-properties-session-select the first replacement user setting (o) -end a disconnected session [change the default value "never" to an appropriate time, for example, 30 minutes]
2. Open "Control Panel" and double-click "add or delete ".Program", Click" add and delete Windows Components "*" components"
In the Windows component wizard dialog box, select "Terminal Service" * "Next" * "Application Server "*"
Step by step, and then follow the prompts to change the terminal service mode.
However, I heard that this method requires a license to change the application and will expire in 90 days :(

3. In win2003, you can modify the Group Policy:
The group policy level is higher than the terminal service configuration. When the Group Policy is enabled, the corresponding options in the terminal service configuration become gray and unchangeable.
Run-gpedit. MSC-Computer Configuration-management template-Windows Components-Terminal Service
Double-click "Limit connections" on the right, select "enabled", and enter the maximum number of connections allowed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.