This blog post series has been inspired by a presentation at E2EVC on how to Optimize Logon Times to 3 seconds and fellow CTP Claudio Rodrigues who published a photo showing ControlUp Insights Logon Average of 4 seconds.
This post will show you how to cut Average Logon Duration in Director IN HALF!
Optimize Logon Times – Lab Setup
All tests has been performed on my SuperServer vSphere 6.x Cluster using LoginVSI with 50 users connecting during a 25 minutes period. More details below:
- 2 VM’s Windows 2012 R2 with Citrix XenApp 7.9 – 4 vCPU and 32GB Memory
- Citrix Provisioning Services 7.9 – Cache in Device Ram with Overflow to Disk 2GB
- Local Storage on Samsung 950 Pro M.2 PCIe SSD
- All servers are restarted after each test & stays idle 15 minutes before next test
- Login VSI Scenario – TaskWorker without Microsoft Office
Optimize Logon Times – Logon Results
The first test is without any special tuning. There’re of course some basic Group Policies for Citrix Profile Management, Loopback Replace Mode, RDSH Licensing etc. If my GPO’s are of interest you can download the GPO Starter Pack.
Make sure that you’ve added all files & directory exclusions from UPMPolicyDefaults.ini into Group Policy (and remember to check with every new UPM release). Check this blog post from fellow CTP Carl Stalhood to learn more.
So as you can see the results is rather strange and the main reason I’ve abandoned Citrix Director for some time now. uberAgent shows a average login time of 6.17 seconds with 50 brand new profiles while Citrix Director shows 20 seconds.
I still know how to count and the login doesn’t take 20 seconds! So after some research I stumbled upon this great blog post Long Logon Times and Potential Fixes.
Ever since Windows Vista, Microsoft has added a startup delay for apps. This remains true in Windows 8 and even in Windows 2012 R2 and the new Windows 10.
So let’s add that magic registry key to the mix and see what happens.
That registry hack didn’t make any changes to uberAgent. But WOW look what it did to Citrix Director Average Logon Duration & Interactive Session! Those stats dropped by 50%. Here’s before and after.
After sharing my results about the HUGE difference between uberAgent and Citrix Director I’ve received this tweet out of the blue from a Citrix Employee.
Citrix Director starts the clock when you click the Published Desktop / Application in StoreFront (Receiver wheel starts spinning) while uberAgent / ControlUp starts the clock when the User is Authenticated.
So with this information and the registry tuning above, Citrix Director has regained my trust. The problem is actually not Citrix’s fault, but they should education the end users better. There’s TONS of articles and confused Admins in the Citrix Forum on Interactive Session Slow Logons.