sábado, 10 de fevereiro de 2018

Lentidao Lerdeza performance do RDP no windows server 2008 R2 e 2012 R2 em VM maquina virtuais Vmware e Proxmox


Slow RDP performance on Windows 2008 R2 and 2012 R2 servers running on VMware and Proxmox

We were running several Windows 2012 R2 servers on a VMware ESX environment. And still, we experience a sluggish performance on the Windows 2012R2 server when connection them with any RDP-client. We tried different connections (wifi, 4G, LAN, etc.) and different clients (Windows 10 RDP, RoyalTS, Mac-RDP, etc.). The hardware could’t be a factor in the issue. So we searched to some finetune-settings in GPO and registry.

The hardware wasn’t an issue.

the servers did’t have a high overall load
there was no high CPU load
there was enough RAM
we used 15k HP SAS enterprise disks
there was no high IO
we had Teamed the NICs in VMware


This is what we did to solve the issue and get very fast RDP-performance.


Finetune “Remote Desktop Services” in Group Policy


Just wanted to post this for anyone else experiencing this issue. Seems the issue does not effect Windows Server 2012 R2, and turns out it might be related to the UDP packets getting fragmenting when creating a RDP session. Here’s the fix:


open prompt DOS:  gpedit.msc 





Computer Config > Windows Settings  > Administrative Templates > Windows  Components  > Remote Desktop Services > Remote Desktop Session Host >  Connections >  Select RDP transport protocol = Use only TCP











You can also set this on the client side by specifying:

Computer Config > Windows Settings > Admin Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client > Turn off UDP on Client = Enabled











Disabling TCP Offloading in Windows Server 2012
We also add below registry setting to improve performance. A little explanation of TCP Offloading:

“TCP offload engine is a function used in network interface cards (NIC) to offload processing of the entire TCP/IP stack to the network controller. By moving some or all of the processing to dedicated hardware, a TCP offload engine frees the system’s main CPU for other tasks. However, TCP offloading has been known to cause some issues, and disabling it can help avoid these issues.”


----------  2º second option -----------


This is what you must do in the Registry (regedit)




1. Open RegEdit on the Windows Server machine.

2. Navigate to this registry key in the tree on the left:

3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

4. Right-click on the right side, and add a new DWORD (32-bit) Value

5. Set the value name to DisableTaskOffload and the value data to 1

6. Reconnect to the Server via RDP (to a new session) and your performance should be normal.










*-------------------------------------------------------------------------------------------------*


On the Windows Server 2012 machine, disable the Large Send Offload via the following steps:

a. Open Network Connections.

b. Right-click the icon of the NIC which is responsible for the connection to terminal clients and select Properties.

c. In Networking tab, click Configure… button.

d. In the next window, switch to Advanced tab.

e. Click the Large Send Offload Version 2 (IPv4) and change the value to Disabled.















Nenhum comentário: