有台Windows Server 2019 Datacenter的服务器,最近在远程连接的时候总是出现报错:
Remote Desktop Connection
An internal error has occurred.
查看了系统日志:
Log Name: Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational
Source: Microsoft-Windows-RemoteDesktopServices-RdpCoreTS
Date: 9/3/2019 2:55:40 PM
Event ID: 227
Task Category: RemoteFX module
Level: Error
Keywords:
User: NETWORK SERVICE
Computer: SR-CNOLAP01.futurmaster.com
Description:
'spCoreConnection is NULL!' in CUMRDPConnection::TerminateInstance at 746 err=[0x8007139f]
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-RemoteDesktopServices-RdpCoreTS" Guid="{1139c61b-b549-4251-8ed3-27250a1edec8}" />
<EventID>227</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>4</Task>
<Opcode>19</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2019-09-03T06:55:40.592313700Z" />
<EventRecordID>25290</EventRecordID>
<Correlation ActivityID="{f420c243-199b-41a1-a757-72b573730000}" />
<Execution ProcessID="2504" ThreadID="14232" />
<Channel>Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational</Channel>
<Computer>SR-CNOLAP01.futurmaster.com</Computer>
<Security UserID="S-1-5-20" />
</System>
<EventData>
<Data Name="Name">CUMRDPConnection</Data>
<Data Name="Value">2147947423</Data>
<Data Name="CustomLevel">'spCoreConnection is NULL!' in CUMRDPConnection::TerminateInstance at 746 err=[0x8007139f]</Data>
</EventData>
</Event>
每次重启就好了,但是过一段时间还有,一直反复。
临时解决方案,注册表 增加最大未完成连接限制
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"MaxOutstandingConnections"=dword:00010000