Server Side Settings

The steps are briefed below


1.Open 'Group Policy MMC Snap in', using Start->Run->gpedit.msc




2. Navigate to 'Computer Configuration->Administrative Templates->Windows Components->Remote Desktop Services->Remote Desktop Session Host->Remote Session Environment' (see the below figure) 

Now enable the settings, rectangle in red in the below figure. Configure the settings as below.


Limit maximum color depth = 15bit
Enforce Removal of Remote Desktop wallpaper = true
Optimize Visual Experience when using RemoteFx = (Screen Capture Rate: Lowest + Image Quality: Lowest)
Set Compression Algorithm for RDP data = optimized to use less network bandwidth
Optimize Visual Experience for Remote Desktop Service Sessions = (Visual Experience = Text)
Configure Image Quality For RemoteFx Adaptive Graphics = Medium





The above settings known to dramatically improve the RDP performance as it reduces the use of network bandwidth and both server/client load on processing the RDP data.



3.We can configure the below settings, to restrict the redirection of additional resources between the client/remote machine. If we does not require these resources to be redirected

 (esp. like the Printer attached to the remote machine, we rarely use it for any real purpose. So go and disable the printer redirection)



The above applies for 'Printer Redirection' section as well. Make the settings (in red rectangle) enabled.




4.Disconnect and then reconnect to the remote machine, for the changes to be applied.



General Settings


System Performance Setting


For overall system performance make the following changes in both client and server machine

1.Open system Properties (right click ‘My Computer’ Properties)

2. Navigate "Advanced system settings"->"Advanced Tab"->"Settings Button"->"Visual Effect Tab".

3. Select the radio button name 'Adjust for best performance'. Again if you're a fan of 'Anti-Aliased Font' (Clear Type Text), you can choose 'Custom' radio button with only 'smooth edges of screen fonts', checked.







Page file

Insufficient page file size can cause memory allocation failures in apps or system components. You can use the memory-to-committed bytes performance counter to monitor how much committed virtual memory is on the system.


Antivirus

Installing antivirus software on an RD Session Host server greatly affects overall system performance, especially CPU usage. We highly recommend that you exclude from the active monitoring list all the folders that hold temporary files, especially those that services and other system components generate.


Task Scheduler

Task Scheduler lets you examine the list of tasks that are scheduled for different events. For an RD Session Host server, it is useful to focus specifically on the tasks that are configured to run on idle, at user sign-in, or on session connect and disconnect. Because of the specifics of the deployment, many of these tasks might be unnecessary.


Desktop notification icons

Notification icons on the desktop can have fairly expensive refreshing mechanisms. You should disable any notifications by removing the component that registers them from the startup list or by changing

the configuration on apps and system components to disable them. You can use Customize Notifications Icons to examine the list of notifications that are available on the server.


RemoteFX data compression


Microsoft RemoteFX compression can be configured by using Group Policy under Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment > Configure compression for RemoteFX data. Three values are possible:

1.Optimized to use less memory Consumes the least amount of memory per session but has the lowest compression ratio and therefore the highest bandwidth consumption.

2.Balances memory and network bandwidth Reduced bandwidth consumption while marginally increasing memory consumption (approximately 200 KB per session).

3.Optimized to use less network bandwidth further reduces network bandwidth usage at a cost of approximately 2 MB per session. If you want to use this setting, you should assess the maximum number of sessions and test to that level with this setting before you place the server in production.

You can also choose to not use a RemoteFX compression algorithm. Choosing to not use a RemoteFX compression algorithm will use more network bandwidth, and it is only recommended if you are using a hardware device that is designed to optimize network traffic. Even if you choose not to use a RemoteFX compression algorithm, some graphics data will be compressed.


Drag only the Outline of the Window

Probably the most expensive operation in RDP is dragging a window around. A simple way to save WAN bandwidth is to show only the outline when dragging a window. Open regedit and navigate to HKEY_CURRENT_USER -> Control Panel -> Desktop and change DragFullWindows to 0. Reboot for the changes to take effect.




















Disable ClearType Fonts

ClearType fonts improve the readability of text on screen, but also consume extra bandwidth. To disable ClearType fonts open up Control Panel and go to Appearance and Personalization -> Fonts and click on Adjust ClearType text. Deselect Turn on ClearType to disable ClearType fonts and click then click Next. This will begin a wizard which will ask you to select the font samples that look best on your screen. I just kept the default settings as that looked best on my screen.

















This change can reduce bandwidth by up to 10%.











Improving RDP – Slow initial Connection time


1. The one reason behind RDP connection lag occurs on machines that cannot access the internet is because remote desktop actually reaches out to the internet to check for root certificates that may have been revoked. Since the machine cannot get out to the internet, it sits there until it times out and then your RDP connection proceeds.

Fix: The fix is simple, again for machines that cannot access the internet, make the following changes in your group policy


 Computer Configuration --- Policies --- Administrative Templates --- System --- Internet

Communication Settings Configure the setting for "Turn off Automatic Root Certificates Update" set it to ENABLED


2. Other fix for RDP – slow initial connection

Use notepad to edit the .rdp file and add the following:


enablecredsspsupport:i:0


Here's a link explaing RDP Settings for Remote Desktop Services include the enablecredsspsupport command:

 http://technet.microsoft.com/en-us/library/ff393699(WS.10).aspx


PDF Slow Display Performance

Issue

When you view PDF files in Adobe Acrobat or Adobe Reader in a Terminal Server/Citrix environment, the display is slow to update over an RDP connection. This issue is particularly noticeable when scrolling through PDF documents that contain high-resolution images.


Solution 1:

Update the Page Display preferences in Acrobat or Reader.

Change the following settings in Acrobat or Reader. You can either disable these options directly in Reader/Acrobat under 

"Edit > Preferences > Page Display > Rendering", or using the registry keys for system administrators:


1.deactivate "2D Graphic acceleration" HKCU\Software\Adobe\Acrobat Reader\9.0\AVDisplay - bUse2DGPUf=dword:0

2.deactivate “Smooth images" HKCU\Software\Adobe\Acrobat Reader\9.0\Originals - bAntialiasImages=dword:0

3. deactivate “Smooth line art" HKCU\Software\Adobe\Acrobat Reader\9.0\Originals - bAntialiasGraphics=dword:0

4. set "Smooth Text" to None (optional: some customers have reported acceptable performance without setting Smooth Text to None)

 HKCU\Software\Adobe\Acrobat Reader\9.0\Originals - bAntialiasText=dword:0

 HKCU\Software\Adobe\Acrobat Reader\9.0\Originals - iAntialiasThreshold=dword:0

 HKCU\Software\Adobe\Acrobat Reader\9.0\Originals - benableDDR=dword:0


Changing registry values is not officially supported by Adobe and you do so at your own risk. 


You should only be changing the registry settings if you have the correct privileges and experience in this area.

System Administrators should change these settings first using the Preferences dialog in Adobe Reader (not using the registry) and re-test the performance through Citrix. Once you have the right combination of settings that work, then you should record the values of these registry keys to use for your other Reader installations. This is important as the value of the iAntialiasThreshold key can differ (0, 1, or 12) depending on which of the other options are deactiviated.

Note: These settings will improve the display performance on low-bandwidth connections, however, they can adversely affect the display performance on LAN connections. You will need to test these thoroughly.


Solution 2: 

Use an RDP compression tool to compress the data being sent "over-the-wire."

RDP sends the entire set of image data each time the image is scrolled on the page. Sending all the data at once can cause congestion on the network connection, especially with limited bandwidth. Some customers have had success using the following tool to improve the display performance on Terminal Server for low-bandwidth connections: http://www.ericom.com/ericom_blaze.asp


Solution 3

Server side

In REGISTRY

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD

flow control 1

flow control diplay 80

flow control channel 20 (we used 175)

flow control forced compression 0

CHANGES

FlowControlDisable = 0.

FlowControlChargePostCompression = 0

HOT FIX

Hot Fix applied - Windows6.1-KB981156-x64.msu

Client side

In ACROBAT settings

view / page display change from page display, single page to single page continuous

Edit / preferenses / rendering: smooth text - none

In REGISTRY

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD

flow control 1

flow control diplay 80

flow control channel 20

flow control forced compression 0

CHANGES

FlowControlDisable = 0.

FlowControlChargePostCompression = 0

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

New: DWORD "EnableTCPA"

Value: 0


Solution 4:

Under Edit > Preferences:

1. Page Display > Smooth Text > None

Making your text more beautiful takes time, it might have an impact on your performance.

2. Page Display > Enhance thin lines > Unchecked

Similar to text, this might have an impact too.

3. Page Display > Use 2D graphics acceleration > (Un)checked

It's essential to try both states here, who knows your CPU is faster and thus software-based is faster.

If you uncheck this, you might want to uncheck Smooth line art and Smooth images too.


Slow Scrolling through browser in RDP session

Solution 1

1. Changing the compression algorithm

Type in the search bar at the start menu: gpedit.msc Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment

2. Disabling the TCP auto-tuning (for Windows Vista+ host)

1. Open up cmd.exe as administrator.

2. Type in: netsh interface tcp set global autotuning=disabled

3. To check if it worked: netsh interface tcp show global

To re-enable it: netsh interface tcp set global autotuning=normal


Solution 2

graphics hardware acceleration

On the remote system:

Firefox button or classic Tools menu > Options > Advanced

On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"

Then restart Firefox.