Remote Desktop Services: Resolvendo o problema de Logon Lento (pt-BR)
Intro
Neste Tutorial vamos mostrar como corrigir o problema de logon lento (slow logon) no Servidor RDS do Windows Server 2008 R2 SP1.
Os usuários na tentativa de logon no servidor estão levando em torno de 20 minutos para carregar o desktop. O servidor apresenta lentidão para carregar algumas instruções como o Systeminfo. Efetuado o CleanBoot e o problema persiste.
http://www.purainfo.com.br/wp-content/uploads/rds_thumb.png
Solução
Verificado que em determinados momentos o consumo de CPU permanecia alto, em torno de 100% no serviço do SVCHOST, o que poderia sugerir ao WMI. Reiniciamos o serviço.
Durante alguns momentos o servidor permaneceu estável. O comportamento tornou a ocorrer, aonde realizamos o procedimento para RDS server, limpando as Portas de TS inativas.
“A large number of Inactive Terminal Services ports was detected. This may cause high CPU, slow logon, and failure to map printers and network drives. Please see the referenced blog post for information of how to fix the issue.”
Performance issues due to Inactive Terminal Server Ports http://blogs.technet.com/b/askperf/archive/2012/03/06/performance-issues-due-to-inactive-terminal-server-ports.aspx
WMI: How to troubleshoot High CPU Usage by WMI Components http://blogs.technet.com/b/askperf/archive/2014/08/12/wmi-how-to-troubleshoot-high-cpu-usage-by-wmi-components.aspx
Verificamos o WMIDiag, em busca de problemas com o componente. Aonde apenas a seguinte informação foi corrigida.
27203 17:00:12 (0) ** Unexpected, wrong or missing registry key values:
…………………………………………………………. 1 KEY(S)!
27204 17:00:12 (1) !! ERROR: Unexpected registry key value:
27205 17:00:12 (0) ** – Current: HKLM\SYSTEM\CurrentControlSet\Services\winmgmt\Type (REG_DWORD) -> &h10
27206 17:00:12 (0) ** – Expected: HKLM\SYSTEM\CurrentControlSet\Services\winmgmt\Type (REG_DWORD) -> &h20
27207 17:00:12 (0) ** From the command line, the registry configuration can be corrected with the following command:
27208 17:00:12 (0) ** i.e. ‘REG.EXE Add “HKLM\SYSTEM\CurrentControlSet\Services\winmgmt” /v “Type” /t “REG_DWORD” /d “32” /f’ High CPU utilization by the Svchost.exe process and the Lsm.exe process in the Remote
A performance permanece normal.
http://www.purainfo.com.br/wp-content/uploads/image002_thumb.png
Aplicado os seguintes Hotfixes.
- Desktop session after you remotely connect to a computer that is running Windows 7 or Windows Server 2008 R2 : https://support.microsoft.com/en-us/kb/2750090
- Poor performance occurs when you shadow a Remote Desktop session in Windows Server 2008 R2 or in Windows 7: https://support.microsoft.com/en-us/kb/2685909
- “Logon Process Initialization Failure” error message and the logon process does not start in Windows 7 or in Windows Server 2008 R2 https://support.microsoft.com/en-us/kb/2615701
Após os processos e restart do Servidor, não foram detectados mais problemas.
NOTA : Os KBs são descritos como Hotfix, aonde corrigem determinado comportamento. Não recomendo a instalação proativa a menos que necessário.
Available Updates for Remote Desktop Services (Terminal Services) on Windows Server 2008 R2 SP1 https://support.microsoft.com/en-us/kb/2601888
“NOTE: This list is an aggregate of common issues seen with Remote Desktop Services (Terminal Services) in Windows Server 2008 R2. Do not proactively install the following patches unless needed. If you believe that you are experiencing an issue listed below, install just the hotfix for that specific issue. If the specific hotfix is listed for your issue we recommend that you evaluate these hotfixes and updates to determine if they apply to a specific Windows version and Service Pack level.”
Conclusão
Neste Tutorial mostramos como solucionar o problema de logon lento no Remote Desktop Services do Windows Server 2008R2 SP1.